diff --git a/packages/common/http/src/xhr.ts b/packages/common/http/src/xhr.ts index 11e0fd544e..1dc006a463 100644 --- a/packages/common/http/src/xhr.ts +++ b/packages/common/http/src/xhr.ts @@ -79,9 +79,10 @@ export class HttpXhrBackend implements HttpBackend { */ handle(req: HttpRequest): Observable> { // Quick check to give a better error message when a user attempts to use - // HttpClient.jsonp() without installing the JsonpClientModule + // HttpClient.jsonp() without installing the HttpClientJsonpModule if (req.method === 'JSONP') { - throw new Error(`Attempted to construct Jsonp request without JsonpClientModule installed.`); + throw new Error( + `Attempted to construct Jsonp request without HttpClientJsonpModule installed.`); } // Everything happens on Observable subscription.