1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

All: Fixes #632: Handle restricted_content error in Dropbox

This commit is contained in:
Laurent Cozic
2018-06-18 08:47:51 +01:00
parent 44f9b35d93
commit a8b58aaec3
2 changed files with 53 additions and 20 deletions

View File

@@ -133,6 +133,8 @@ class FileApiDriverDropbox {
} catch (error) {
if (this.hasErrorCode_(error, 'not_found')) {
return null;
} else if (this.hasErrorCode_(error, 'restricted_content')) {
throw new JoplinError('Cannot download because content is restricted by Dropbox', 'rejectedByTarget');
} else {
throw error;
}