1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

All: Improved: Display better error message when trying to sync with a new sync target from an old version of Joplin

This commit is contained in:
Laurent Cozic
2019-04-30 23:42:06 +01:00
parent af794a16d6
commit aad49c520b
3 changed files with 7 additions and 2 deletions

View File

@ -667,6 +667,9 @@ class Synchronizer {
// in the application, and needs to be resolved by the user.
// Or it's a temporary issue that will be resolved on next sync.
this.logger().info(error.message);
} else if (error.code === 'unknownItemType') {
this.progressReport_.errors.push(_('Unknown item type downloaded - please upgrade Joplin to the latest version'));
this.logger().error(error);
} else {
this.logger().error(error);