1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +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

@ -106,7 +106,7 @@ class BaseItem extends BaseModel {
let d = BaseItem.syncItemDefinitions_[i];
if (Number(item) == d.type) return this.getClass(d.className);
}
throw new Error('Unknown type: ' + item);
throw new JoplinError('Unknown type: ' + item, 'unknownItemType');
}
}