Skip to content

Commit

Permalink
Throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 10, 2024
1 parent 2af2d21 commit 655ab21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function sha() {
'rev-parse', 'HEAD'
]);

if (!git.stdout) return (new Error('Is this a git repo? Could not determine GitSha'));
if (!git.stdout) throw Error('Is this a git repo? Could not determine GitSha');
return String(git.stdout).replace(/\n/g, '');

}

0 comments on commit 655ab21

Please sign in to comment.