You've already forked joplin
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:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user