Skip to content

Commit b699ae5

Browse files
authored
Hide failed network calls in console errors (#813)
* Conditonally call login_with_refresh_token * lint fix * Hide failed network calls in console errors * Hide console errors for GET calls with 404 * support for CO * pr comments * PR Comments * revert one commit * pr comment * revert * pr comments * Pr comment * pr comment * pr comment * pr comment
1 parent fa0eb67 commit b699ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/services/common/api.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ApiService {
2828
private handleError(error: HttpErrorResponse, httpMethod: string, url: string) {
2929
if (error.error instanceof ErrorEvent) {
3030
console.error('An error occurred:', error.error.message);
31-
} else {
31+
} else if (error.status >= 500) {
3232
console.error(
3333
`Backend returned code ${error.status}, url was: ${url} method was: ${httpMethod}, body was: ${JSON.stringify(error.error)}`
3434
);

0 commit comments

Comments
 (0)