From 909968063d1e40dc9bc32018b8c25d3bf454b43f Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Thu, 10 Aug 2023 23:40:37 -0600 Subject: [PATCH] show file in error --- docs/demo/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;