fix: include error message in the stack trace
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user