throwException instead of throwing exceptions manually (includes stacktrace)

This commit is contained in:
azivner
2017-12-06 19:53:23 -05:00
parent a7831ebfcd
commit a0bbd8c853
9 changed files with 16 additions and 12 deletions

View File

@@ -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);
}