From 44aed5feb0bd44abafde51f3ff0ef11d813e6bbd Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 25 Jul 2024 13:21:28 +0200 Subject: [PATCH] Better error message --- src/editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/editor.js b/src/editor/editor.js index 484176d..8bfc2aa 100644 --- a/src/editor/editor.js +++ b/src/editor/editor.js @@ -177,7 +177,7 @@ export class HeynoteEditor { this.setReadOnly(false) } catch (e) { this.setReadOnly(true) - throw e + throw new Error(`Failed to load note: ${e.message}`) } this.notesStore.currentNoteName = this.note.metadata?.name || this.path return new Promise((resolve) => {