Skip to content

Commit d73a017

Browse files
JeanMechepkozlowski-opensource
authored andcommitted
fix(core): link errors to ADEV (#55554)
Console error links will now point to adev. PR Close #55554
1 parent d572575 commit d73a017

File tree

17 files changed

+30
-30
lines changed

17 files changed

+30
-30
lines changed

packages/common/test/directives/ng_for_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('ngFor', () => {
118118

119119
getComponent().items = <any>'whaaa';
120120
expect(() => fixture.detectChanges()).toThrowError(
121-
`NG02200: Cannot find a differ supporting object 'whaaa' of type 'string'. NgFor only supports binding to Iterables, such as Arrays. Find more at https://angular.io/errors/NG02200`,
121+
`NG02200: Cannot find a differ supporting object 'whaaa' of type 'string'. NgFor only supports binding to Iterables, such as Arrays. Find more at https://angular.dev/errors/NG02200`,
122122
);
123123
}));
124124

@@ -127,7 +127,7 @@ describe('ngFor', () => {
127127

128128
getComponent().items = <any>{'stuff': 'whaaa'};
129129
expect(() => fixture.detectChanges()).toThrowError(
130-
`NG02200: Cannot find a differ supporting object '\[object Object\]' of type 'object'. NgFor only supports binding to Iterables, such as Arrays. Did you mean to use the keyvalue pipe? Find more at https://angular.io/errors/NG02200`,
130+
`NG02200: Cannot find a differ supporting object '\[object Object\]' of type 'object'. NgFor only supports binding to Iterables, such as Arrays. Did you mean to use the keyvalue pipe? Find more at https://angular.dev/errors/NG02200`,
131131
);
132132
}));
133133

packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('NgModule', () => {
6464
expect(() => createInjector(AModule)).toThrowError(
6565
'NG0200: Circular dependency in DI detected for AModule. ' +
6666
'Dependency path: AModule > BModule > AModule. ' +
67-
'Find more at https://angular.io/errors/NG0200',
67+
'Find more at https://angular.dev/errors/NG0200',
6868
);
6969
});
7070

packages/compiler-cli/src/ngtsc/diagnostics/src/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {ErrorCode} from './error_code';
1010

1111
/**
1212
* Contains a set of error messages that have detailed guides at angular.io.
13-
* Full list of available error guides can be found at https://angular.io/errors
13+
* Full list of available error guides can be found at https://angular.dev/errors
1414
*/
1515
export const COMPILER_ERRORS_WITH_GUIDES = new Set([
1616
ErrorCode.DECORATOR_ARG_NOT_LITERAL,

packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
1414
* - packages/core/src/error_details_base_url.ts
1515
*/
16-
export const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
16+
export const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.dev/errors';

packages/core/src/error_details_base_url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
1414
* - packages/core/src/error_details_base_url.ts
1515
*/
16-
export const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
16+
export const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.dev/errors';
1717

1818
/**
1919
* URL for the XSS security documentation.

packages/core/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {ERROR_DETAILS_PAGE_BASE_URL} from './error_details_base_url';
1616
* angular.io. This extra annotation is needed to avoid introducing a separate set to store
1717
* error codes which have guides, which might leak into runtime code.
1818
*
19-
* Full list of available error guides can be found at https://angular.io/errors.
19+
* Full list of available error guides can be found at https://angular.dev/errors.
2020
*
2121
* Error code ranges per package:
2222
* - core (this package): 100-999

packages/core/src/image_performance_warning.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function logLazyLCPWarning(src: string) {
177177
`changing the loading value of the LCP image to "eager", or by using the ` +
178178
`NgOptimizedImage directive's prioritization utilities. For more ` +
179179
`information about addressing or disabling this warning, see ` +
180-
`https://angular.io/errors/NG0913`,
180+
`https://angular.dev/errors/NG0913`,
181181
),
182182
);
183183
}
@@ -189,7 +189,7 @@ function logOversizedImageWarning(src: string) {
189189
`An image with src ${src} has intrinsic file dimensions much larger than its ` +
190190
`rendered size. This can negatively impact application loading performance. ` +
191191
`For more information about addressing or disabling this warning, see ` +
192-
`https://angular.io/errors/NG0913`,
192+
`https://angular.dev/errors/NG0913`,
193193
),
194194
);
195195
}

packages/core/test/acceptance/di_forward_ref_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('di with forwardRef', () => {
3030

3131
TestBed.configureTestingModule({declarations: [DirectiveA, DirectiveB, MyComp]});
3232
expect(() => TestBed.createComponent(MyComp)).toThrowError(
33-
'NG0200: Circular dependency in DI detected for DirectiveA. Find more at https://angular.io/errors/NG0200',
33+
'NG0200: Circular dependency in DI detected for DirectiveA. Find more at https://angular.dev/errors/NG0200',
3434
);
3535
});
3636

packages/core/test/acceptance/di_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ describe('di', () => {
11031103

11041104
TestBed.configureTestingModule({declarations: [DirectiveA, DirectiveB, MyComp]});
11051105
expect(() => TestBed.createComponent(MyComp)).toThrowError(
1106-
'NG0200: Circular dependency in DI detected for DirectiveA. Find more at https://angular.io/errors/NG0200',
1106+
'NG0200: Circular dependency in DI detected for DirectiveA. Find more at https://angular.dev/errors/NG0200',
11071107
);
11081108
});
11091109

@@ -2216,7 +2216,7 @@ describe('di', () => {
22162216

22172217
TestBed.configureTestingModule({declarations: [DirectiveString, MyComp, MyApp]});
22182218
expect(() => TestBed.createComponent(MyApp)).toThrowError(
2219-
'NG0201: No provider for String found in NodeInjector. Find more at https://angular.io/errors/NG0201',
2219+
'NG0201: No provider for String found in NodeInjector. Find more at https://angular.dev/errors/NG0201',
22202220
);
22212221
});
22222222

@@ -2289,7 +2289,7 @@ describe('di', () => {
22892289

22902290
TestBed.configureTestingModule({declarations: [DirectiveComp, MyComp, MyApp]});
22912291
expect(() => TestBed.createComponent(MyApp)).toThrowError(
2292-
'NG0201: No provider for MyApp found in NodeInjector. Find more at https://angular.io/errors/NG0201',
2292+
'NG0201: No provider for MyApp found in NodeInjector. Find more at https://angular.dev/errors/NG0201',
22932293
);
22942294
});
22952295

packages/core/test/application_init_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('ApplicationInitStatus', () => {
183183
'NG0209: Unexpected type of the `APP_INITIALIZER` token value ' +
184184
`(expected an array, but got string). ` +
185185
'Please check that the `APP_INITIALIZER` token is configured as a ' +
186-
'`multi: true` provider. Find more at https://angular.io/errors/NG0209',
186+
'`multi: true` provider. Find more at https://angular.dev/errors/NG0209',
187187
);
188188
});
189189
});

0 commit comments

Comments
 (0)