Starting fixing unhandled promises

This commit is contained in:
David Négrier
2021-12-16 18:18:55 +01:00
parent bade2b41b6
commit 6e27ffb2d5
7 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export class ActionMessage {
this.message = actionMessageOptions.message;
this.type = actionMessageOptions.type ?? "message";
this.callback = actionMessageOptions.callback;
this.create();
this.create().catch(e => console.error(e));
}
private async create() {