Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Report all errors except 404s
Browse files Browse the repository at this point in the history
  • Loading branch information
emroussel committed Apr 16, 2017
1 parent f91001a commit e756f53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/auth-http-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const cloudSettings: CloudSettings = {
export function handleError(error: Response | any, caught: any) {
let message: string;

if (error.status === 500) {
// Don't report 404s because they are a normal behavior of the api most of the time
// ex: user scan item not present in the database
if (error.status !== 404) {
reportError(error);
}

Expand Down

0 comments on commit e756f53

Please sign in to comment.