mirror of
https://github.com/heyman/heynote.git
synced 2024-12-24 23:59:15 +01:00
Better error message
This commit is contained in:
parent
ecea69f6bb
commit
4c947f960d
@ -177,7 +177,7 @@ export class HeynoteEditor {
|
|||||||
this.setReadOnly(false)
|
this.setReadOnly(false)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.setReadOnly(true)
|
this.setReadOnly(true)
|
||||||
throw e
|
throw new Error(`Failed to load note: ${e.message}`)
|
||||||
}
|
}
|
||||||
this.notesStore.currentNoteName = this.note.metadata?.name || this.path
|
this.notesStore.currentNoteName = this.note.metadata?.name || this.path
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user