Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Show error message in shot.js assert() exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed May 18, 2017
1 parent ccb2397 commit d9f9fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/shot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function assert(condition, ...args) {
return;
}
console.error("Failed assertion", ...args);
throw new Error("Failed assertion", ...args);
throw new Error(`Failed assertion: ${args.join(" ")}`);
}

/** True if `url` is a valid URL */
Expand Down

0 comments on commit d9f9fe6

Please sign in to comment.