This commit is contained in:
parent
3f53da1296
commit
8ab1a97ab3
|
@ -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)!;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue