fix: include error message in the stack trace

This commit is contained in:
Misko Hevery
2015-05-23 09:27:12 -07:00
parent d5c528ac2b
commit 8d081ea7af
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export class BaseException extends Error {
constructor(message?: string) {
super(message);
this.message = message;
this.stack = (<any>new Error()).stack;
this.stack = (<any>new Error(message)).stack;
}
toString(): string { return this.message; }