Skip to content

Commit 6559425

Browse files
Dzmitry Shylovichchuckjaz
authored andcommitted
fix(core): ErrorHandler should not rethrow an error by default (#15077)
1 parent df914ef commit 6559425

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/core/src/error_handler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ErrorHandler {
4646
*/
4747
rethrowError: boolean;
4848

49-
constructor(rethrowError: boolean = true) { this.rethrowError = rethrowError; }
49+
constructor(rethrowError: boolean = false) { this.rethrowError = rethrowError; }
5050

5151
handleError(error: any): void {
5252
this._console.error(`EXCEPTION: ${this._extractMessage(error)}`);
@@ -71,8 +71,6 @@ export class ErrorHandler {
7171
}
7272
}
7373

74-
// We rethrow exceptions, so operations like 'bootstrap' will result in an error
75-
// when an error happens. If we do not rethrow, bootstrap will always succeed.
7674
if (this.rethrowError) throw error;
7775
}
7876

0 commit comments

Comments
 (0)