From 7d9a30f2298e069fc979bb7ba3eb6a41046fbbc9 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 15 Aug 2024 10:03:12 +0200 Subject: [PATCH] fix(material/icon): update error message for missing HttpClient Updates the message saying that `HttpClient` is missing to refer to a non-deprecated API. Fixes #29587. --- src/material/icon/icon-registry.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/material/icon/icon-registry.ts b/src/material/icon/icon-registry.ts index ecc4f9b4f0b4..e70ce5e8c107 100644 --- a/src/material/icon/icon-registry.ts +++ b/src/material/icon/icon-registry.ts @@ -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.', ); }