Skip to content

Commit

Permalink
fixup! refactor(docs-infra): prefix error messages with Angular versi…
Browse files Browse the repository at this point in the history
…on info
  • Loading branch information
gkalpak committed Oct 4, 2021
1 parent 83722ff commit a8022de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio/src/app/shared/reporting-error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export class ReportingErrorHandler extends ErrorHandler {

if (error instanceof Error) {
const oldMessage = error.message;
error.message = `${prefix}${oldMessage}`;
error.message = prefix + oldMessage;
error.stack = error.stack?.replace(oldMessage, error.message);
} else if (typeof error === 'string') {
error = `${prefix}${error}` as unknown as T;
error = prefix + error as unknown as T;
}
// If it is a different type, omit the version to avoid altering the original `error` object.

Expand Down

0 comments on commit a8022de

Please sign in to comment.