Skip to content

Commit c99618a

Browse files
committed
propagate errors
1 parent bc61645 commit c99618a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ergodox-screenshot-layout/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ const argv = yargs.command(
3535
return getKeyboardLayoutScreenshot({
3636
pathToLayoutJson: argv.file,
3737
screenshotFilename: argv.dest,
38-
headless: argv.headless,
38+
headless: argv.headless
39+
}).catch(error => {
40+
console.error(error);
41+
console.error(new Error("Crashed. 👻"));
42+
process.exit(1);
3943
});
4044
}
4145
).argv;

0 commit comments

Comments
 (0)