diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-16 23:25:50 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-18 15:43:50 -0400 |
commit | b892188878fd5a1a38a45d1c2e892c41be240ca0 (patch) | |
tree | d10a7023641c294a0c76f505c9ee0f870fdf36c9 /js/util.ts | |
parent | 3e51605bc9ca98522fc21a0673e690105f48da98 (diff) |
Better exception output.
Diffstat (limited to 'js/util.ts')
-rw-r--r-- | js/util.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.ts b/js/util.ts index 7216f9491..05b243427 100644 --- a/js/util.ts +++ b/js/util.ts @@ -15,9 +15,9 @@ export function log(...args: any[]): void { } } -export function assert(cond: boolean, msg = "") { +export function assert(cond: boolean, msg = "assert") { if (!cond) { - throw Error(`Assert fail. ${msg}`); + throw Error(msg); } } |