Skip to content

Commit

Permalink
Print errors to console even when caught
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnovov committed Oct 21, 2023
1 parent 106dc47 commit 31a584c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/formats/apple-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class AppleNotesImporter extends FormatImporter {
}
catch (e) {
this.ctx.reportFailed(f.ZTITLE2, e?.message);
console.error(e);
}
}

Expand All @@ -161,6 +162,7 @@ export class AppleNotesImporter extends FormatImporter {
}
catch (e) {
this.ctx.reportFailed(n.ZTITLE1, e?.message);
console.error(e);
}
}

Expand Down Expand Up @@ -357,7 +359,8 @@ export class AppleNotesImporter extends FormatImporter {
{ ctime: this.decodeTime(row.ZCREATIONDATE), mtime: this.decodeTime(row.ZMODIFICATIONDATE) }
);
}
catch {
catch (e) {
console.error(e);
return null;
}

Expand Down

0 comments on commit 31a584c

Please sign in to comment.