Skip to content

Commit c72ab0e

Browse files
committed
Fix code review
1 parent 3ba75a5 commit c72ab0e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/copy-binary.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export function copyBinary(): void {
1818
}
1919

2020
if (!fs.existsSync(source)) {
21-
console.log('Source file does not exist:', source);
22-
process.exit(1);
21+
throw new Error(`Source file does not exist: ${ source}`);
2322
} else {
2423
if (fs.existsSync(target)) {
2524
console.log('Target file already exists, overwriting it');

0 commit comments

Comments
 (0)