Skip to content

Commit

Permalink
js/gen_sourcemaps: Throw proper error
Browse files Browse the repository at this point in the history
When using a string, we throw away a lot of informations like the stack trace.
  • Loading branch information
vendethiel committed Jul 11, 2017
1 parent 87535d4 commit 045a4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/bin/gen_sourcemap.js
Expand Up @@ -17,7 +17,7 @@ function toNode(chunk) {
return chunk.map(function(c) {return toNode(c)});
} else {
console.error(chunk);
throw "incorrect chunk";
throw new Error("incorrect chunk");
}
}

Expand Down

0 comments on commit 045a4f4

Please sign in to comment.