Skip to content

Commit

Permalink
fix(parser): display error message when template can't be parsed
Browse files Browse the repository at this point in the history
Fixes #15.
  • Loading branch information
nishantwrp committed Aug 10, 2021
1 parent 941d2d2 commit 7dfcdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Parser {
return compiledTemplate(context);
} catch (err) {
console.error("Error in parsing template.", err);
await joplin.views.dialogs.showMessageBox("There was an error parsing this template, please review it and try again.");
await joplin.views.dialogs.showMessageBox(`There was an error parsing this template, please review it and try again.\n\n${err}`);
return "";
}
}
Expand Down

0 comments on commit 7dfcdf2

Please sign in to comment.