You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
All: Handle Dropbox payload_too_large error
This commit is contained in:
@@ -186,7 +186,9 @@ class FileApiDriverDropbox {
|
|||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (this.hasErrorCode_(error, 'restricted_content')) {
|
if (this.hasErrorCode_(error, 'restricted_content')) {
|
||||||
throw new JoplinError('Cannot upload because content is restricted by Dropbox', 'rejectedByTarget');
|
throw new JoplinError('Cannot upload because content is restricted by Dropbox (restricted_content)', 'rejectedByTarget');
|
||||||
|
} else if (this.hasErrorCode_(error, 'payload_too_large')) {
|
||||||
|
throw new JoplinError('Cannot upload because payload size is rejected by Dropbox (payload_too_large)', 'rejectedByTarget');
|
||||||
} else {
|
} else {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user