mirror of
https://github.com/heyman/heynote.git
synced 2024-12-01 20:33:58 +01:00
Better error message
This commit is contained in:
parent
03db1efd2f
commit
44aed5feb0
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user