diff --git a/docs/demo/worker.js b/docs/demo/worker.js index 9d570500e9..9a634c204f 100644 --- a/docs/demo/worker.js +++ b/docs/demo/worker.js @@ -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;