Skip to content

Commit 265e568

Browse files
committed
Merge branch 'main' into ftp-provider
2 parents e6304b2 + 1b6c260 commit 265e568

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
File renamed without changes.

packages/@uppy/companion/src/server/provider/onedrive/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class OneDrive extends Provider {
104104
tag,
105105
providerName: this.authProvider,
106106
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
107113
getJsonErrorMessage: (body) => body?.error?.message,
108114
})
109115
}

0 commit comments

Comments
 (0)