From 8ab1a97ab3cb63e22bf1729512b9c84c997beda0 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 6 Aug 2023 14:31:22 +0000 Subject: [PATCH] :v: --- packages/frontend/src/scripts/entity-manager.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index c4e7eb07e5..5b7dbba0c8 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -279,8 +279,10 @@ export class NoteManager { this.set(fetchedNote); return this.get(id)!; }) - .catch(() => { - if (this.isDebuggerEnabled) console.log('NoteManager: fetch note (error)', id); + .catch(err => { + if (this.isDebuggerEnabled) { + console.error('NoteManager: fetch note (error)', id, err); + } // エラーが発生した場合は何もしない return this.get(id)!; });