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 3ba75a5 commit c72ab0eCopy full SHA for c72ab0e
1 file changed
src/copy-binary.ts
@@ -18,8 +18,7 @@ export function copyBinary(): void {
18
}
19
20
if (!fs.existsSync(source)) {
21
- console.log('Source file does not exist:', source);
22
- process.exit(1);
+ throw new Error(`Source file does not exist: ${ source}`);
23
} else {
24
if (fs.existsSync(target)) {
25
console.log('Target file already exists, overwriting it');
0 commit comments