fix: include error message in the stack trace
This commit is contained in:
parent
d5c528ac2b
commit
8d081ea7af
@ -11,7 +11,7 @@ export class BaseException extends Error {
|
|||||||
constructor(message?: string) {
|
constructor(message?: string) {
|
||||||
super(message);
|
super(message);
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.stack = (<any>new Error()).stack;
|
this.stack = (<any>new Error(message)).stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
toString(): string { return this.message; }
|
toString(): string { return this.message; }
|
||||||
|
@ -471,7 +471,7 @@ export function main() {
|
|||||||
expect(bindings).toEqual([]);
|
expect(bindings).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should parse a string without a value', () => {
|
iit('should parse a string without a value', () => {
|
||||||
var bindings = parseTemplateBindings('a');
|
var bindings = parseTemplateBindings('a');
|
||||||
expect(keys(bindings)).toEqual(['a']);
|
expect(keys(bindings)).toEqual(['a']);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user