Skip to content

Commit 305d912

Browse files
committed
chore: adjust error message style
1 parent 57708ac commit 305d912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ext/content-scripts/entry-userscripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function injectJS(userscript) {
5151
${userscript.code}
5252
// ===UserScript====end====
5353
} catch (error) {
54-
console.error(error);
54+
console.error(\`${filename.replaceAll("`", "\\`")}\`, error);
5555
}
5656
})(); //# sourceURL=${filename.replace(/[\s"']/g, "-") + usTag}`;
5757
let injectInto = userscript.scriptObject["inject-into"];
@@ -86,7 +86,7 @@ ${userscript.code}
8686
code,
8787
)(userscript.apis);
8888
} catch (error) {
89-
console.error(error);
89+
console.error(`${filename}`, error);
9090
}
9191
return;
9292
}

0 commit comments

Comments
 (0)