Skip to content

Commit

Permalink
show file in error
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Aug 11, 2023
1 parent 529559e commit 9099680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/demo/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function fetchMarked(file) {
// eslint-disable-next-line no-new-func
Function(text)();
} catch (err) {
throw new Error('Cannot find marked.js file');
throw new Error(`Cannot find ${file}`);
}
const marked = g.marked || g.module.exports;
return marked;
Expand Down

0 comments on commit 9099680

Please sign in to comment.