mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed exception to error instead of log
This commit is contained in:
parent
9f32562a8d
commit
90a282cbd0
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ function() {
|
||||||
this.message = message.join(" ");
|
this.message = message.join(" ");
|
||||||
|
|
||||||
var e = Error.call(this, this.message);
|
var e = Error.call(this, this.message);
|
||||||
console.log(e.stack)
|
console.error(e.stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
Exception.prototype = Object.create(Error.prototype);
|
Exception.prototype = Object.create(Error.prototype);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue