X Tutup
Skip to content

Commit 8d081ea

Browse files
committed
fix: include error message in the stack trace
1 parent d5c528a commit 8d081ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/angular2/src/facade/lang.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BaseException extends Error {
1111
constructor(message?: string) {
1212
super(message);
1313
this.message = message;
14-
this.stack = (<any>new Error()).stack;
14+
this.stack = (<any>new Error(message)).stack;
1515
}
1616

1717
toString(): string { return this.message; }

modules/angular2/test/change_detection/parser/parser_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export function main() {
471471
expect(bindings).toEqual([]);
472472
});
473473

474-
it('should parse a string without a value', () => {
474+
iit('should parse a string without a value', () => {
475475
var bindings = parseTemplateBindings('a');
476476
expect(keys(bindings)).toEqual(['a']);
477477
});

0 commit comments

Comments
 (0)
X Tutup