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) {
|
||||
super(message);
|
||||
this.message = message;
|
||||
this.stack = (<any>new Error()).stack;
|
||||
this.stack = (<any>new Error(message)).stack;
|
||||
}
|
||||
|
||||
toString(): string { return this.message; }
|
||||
|
|
|
@ -471,7 +471,7 @@ export function main() {
|
|||
expect(bindings).toEqual([]);
|
||||
});
|
||||
|
||||
it('should parse a string without a value', () => {
|
||||
iit('should parse a string without a value', () => {
|
||||
var bindings = parseTemplateBindings('a');
|
||||
expect(keys(bindings)).toEqual(['a']);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue