Skip to content

Commit

Permalink
fix(material/icon): update error message for missing HttpClient
Browse files Browse the repository at this point in the history
Updates the message saying that `HttpClient` is missing to refer to a non-deprecated API.

Fixes #29587.
  • Loading branch information
crisbeto committed Aug 15, 2024
1 parent 1abb484 commit 8ea7309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/material/icon/icon-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ export function getMatIconNameNotFoundError(iconName: string): Error {
*/
export function getMatIconNoHttpProviderError(): Error {
return Error(
'Could not find HttpClient provider for use with Angular Material icons. ' +
'Please include the HttpClientModule from @angular/common/http in your ' +
'app imports.',
'Could not find HttpClient for use with Angular Material icons. ' +
'Please add provideHttpClient() to your providers.',
);
}

Expand Down
1 change: 1 addition & 0 deletions src/material/icon/icon.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {wrappedErrorMessage} from '@angular/cdk/testing/private';
import {HttpClientModule} from '@angular/common/http';
import {
HttpClientTestingModule,
HttpTestingController,
Expand Down

0 comments on commit 8ea7309

Please sign in to comment.