Skip to content

Commit 58a804d

Browse files
vixaliensonnyp
andauthored
log errors so that they aren't silent
Co-authored-by: Sonny Piers <[email protected]>
1 parent ab1c382 commit 58a804d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class Application extends Adw.Application {
6565
notes.forEach((note) => this.notes_list.append(note));
6666

6767
this.sort_notes();
68-
});
68+
}).catch(logError);
6969
}
7070

7171
save() {

src/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export class WriteableStickyNote extends AbstractStickyNote {
336336
save_note(this.note!)
337337
.then(() => {
338338
this.buffer.set_modified(false);
339-
});
339+
}).catch(logError);
340340
}
341341
});
342342
}

0 commit comments

Comments
 (0)