We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d749a1e commit 1b01f54Copy full SHA for 1b01f54
mod.ts
@@ -33,7 +33,9 @@ export async function bundleUserscript (
33
);
34
35
const stats = await statsIfExists(entrypointPath);
36
- if (!(stats.exists && stats.isFile)) exitWithMessage(1, `The entrypoint argument provided is not a file:\n${entrypointPath}`);
+ if (!(stats.exists && stats.isFile)) {
37
+ throw new Error(`The entrypoint argument provided is not a file:\n${entrypointPath}`);
38
+ }
39
40
let bundleName = '';
41
0 commit comments