mirror of
https://github.com/heyman/heynote.git
synced 2024-12-23 23:28:58 +01:00
Better error message
This commit is contained in:
parent
ecea69f6bb
commit
4c947f960d
@ -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