mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
throwException instead of throwing exceptions manually (includes stacktrace)
This commit is contained in:
@@ -28,7 +28,7 @@ async function createNewNote(parentNoteId, note) {
|
||||
await sync_table.addNoteReorderingSync(parentNoteId);
|
||||
}
|
||||
else {
|
||||
throw new Error('Unknown target: ' + note.target);
|
||||
throwError('Unknown target: ' + note.target);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user