File tree 2 files changed +6
-0
lines changed
packages/@uppy/companion/src/server/provider/onedrive
2 files changed +6
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ class OneDrive extends Provider {
104
104
tag,
105
105
providerName : this . authProvider ,
106
106
isAuthError : ( response ) => response . statusCode === 401 ,
107
+ isUserFacingError : ( response ) => [ 400 , 403 ] . includes ( response . statusCode ) ,
108
+ // onedrive gives some errors here that the user might want to know about
109
+ // e.g. these happen if you try to login to a users in an organization,
110
+ // without an Office365 licence or OneDrive account setup completed
111
+ // 400: Tenant does not have a SPO license
112
+ // 403: You do not have access to create this personal site or you do not have a valid license
107
113
getJsonErrorMessage : ( body ) => body ?. error ?. message ,
108
114
} )
109
115
}
You can’t perform that action at this time.
0 commit comments