Skip to content

Commit

Permalink
Revert "refactor(core): output an error guide link in prod mode (#53324
Browse files Browse the repository at this point in the history
…)" (#53392)

This reverts commit f245aba.

Reason: breaks g3

PR Close #53392
  • Loading branch information
alxhub committed Dec 6, 2023
1 parent e620b3a commit 580af8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/errors.ts
Expand Up @@ -158,7 +158,7 @@ export function formatRuntimeError<T extends number = RuntimeErrorCode>(

let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;

if (code < 0) {
if (ngDevMode && code < 0) {
const addPeriodSeparator = !errorMessage.match(/[.,;!?\n]$/);
const separator = addPeriodSeparator ? '.' : '';
errorMessage =
Expand Down
3 changes: 0 additions & 3 deletions packages/core/test/bundling/defer/bundle.golden_symbols.json
Expand Up @@ -161,9 +161,6 @@
{
"name": "ENVIRONMENT_INITIALIZER"
},
{
"name": "ERROR_DETAILS_PAGE_BASE_URL"
},
{
"name": "ERROR_ORIGINAL_ERROR"
},
Expand Down

0 comments on commit 580af8e

Please sign in to comment.