mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
small refactorings
This commit is contained in:
@@ -105,8 +105,7 @@ function importEnex(taskContext, file, parentNote) {
|
||||
}
|
||||
|
||||
saxStream.on("error", e => {
|
||||
// unhandled errors will throw, since this is a proper node
|
||||
// event emitter.
|
||||
// unhandled errors will throw, since this is a proper node event emitter.
|
||||
log.error(`error when parsing ENEX file: ${e}`);
|
||||
// clear the error
|
||||
this._parser.error = null;
|
||||
@@ -322,7 +321,7 @@ function importEnex(taskContext, file, parentNote) {
|
||||
content += imageLink;
|
||||
}
|
||||
} catch (e) {
|
||||
log.error(`error when saving image from ENEX file: ${e}`);
|
||||
log.error(`error when saving image from ENEX file: ${e.message}`);
|
||||
createFileNote();
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user