We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa0eb67 commit b699ae5Copy full SHA for b699ae5
src/app/core/services/common/api.service.ts
@@ -28,7 +28,7 @@ export class ApiService {
28
private handleError(error: HttpErrorResponse, httpMethod: string, url: string) {
29
if (error.error instanceof ErrorEvent) {
30
console.error('An error occurred:', error.error.message);
31
- } else {
+ } else if (error.status >= 500) {
32
console.error(
33
`Backend returned code ${error.status}, url was: ${url} method was: ${httpMethod}, body was: ${JSON.stringify(error.error)}`
34
);
0 commit comments