This commit is contained in:
tamaina 2023-08-06 14:31:22 +00:00
parent 3f53da1296
commit 8ab1a97ab3
1 changed files with 4 additions and 2 deletions

View File

@ -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)!;
});