We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a107288 commit 5182ee8Copy full SHA for 5182ee8
APM-CLI-Final/src/app/products/product.service.ts
@@ -10,7 +10,7 @@ import { IProduct } from './product';
10
11
@Injectable()
12
export class ProductService {
13
- private _productUrl = './api/products/products.json';
+ private _productUrl = './api/products/productsa.json';
14
15
constructor(private _http: HttpClient) { }
16
@@ -37,7 +37,7 @@ export class ProductService {
37
// The response body may contain clues as to what went wrong,
38
errorMessage = `Server returned code: ${err.status}, error message is: ${err.message}`;
39
}
40
- console.log(err);
+ console.error(errorMessage);
41
return Observable.throw(errorMessage);
42
43
0 commit comments