Skip to content

Commit

Permalink
fix(material/icon): update error message for missing HttpClient (#29589)
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.

(cherry picked from commit 4f2bc4d)
  • Loading branch information
crisbeto committed Aug 15, 2024
1 parent 2caed5b commit c4c62b8
Showing 1 changed file with 2 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

0 comments on commit c4c62b8

Please sign in to comment.