fix(core): ErrorHandler should not rethrow an error by default (#15077)

This commit is contained in:
Dzmitry Shylovich 2017-03-13 21:27:01 +03:00 committed by Chuck Jazdzewski
parent df914ef4bf
commit 6559425b07
1 changed files with 1 additions and 3 deletions

View File

@ -46,7 +46,7 @@ export class ErrorHandler {
*/
rethrowError: boolean;
constructor(rethrowError: boolean = true) { this.rethrowError = rethrowError; }
constructor(rethrowError: boolean = false) { this.rethrowError = rethrowError; }
handleError(error: any): void {
this._console.error(`EXCEPTION: ${this._extractMessage(error)}`);
@ -71,8 +71,6 @@ export class ErrorHandler {
}
}
// We rethrow exceptions, so operations like 'bootstrap' will result in an error
// when an error happens. If we do not rethrow, bootstrap will always succeed.
if (this.rethrowError) throw error;
}