Skip to content

Commit 5182ee8

Browse files
committed
Update exception handling
1 parent a107288 commit 5182ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APM-CLI-Final/src/app/products/product.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { IProduct } from './product';
1010

1111
@Injectable()
1212
export class ProductService {
13-
private _productUrl = './api/products/products.json';
13+
private _productUrl = './api/products/productsa.json';
1414

1515
constructor(private _http: HttpClient) { }
1616

@@ -37,7 +37,7 @@ export class ProductService {
3737
// The response body may contain clues as to what went wrong,
3838
errorMessage = `Server returned code: ${err.status}, error message is: ${err.message}`;
3939
}
40-
console.log(err);
40+
console.error(errorMessage);
4141
return Observable.throw(errorMessage);
4242
}
4343
}

0 commit comments

Comments
 (0)