Skip to content

Commit

Permalink
Allow http interceptor to return errors in production as its needed f…
Browse files Browse the repository at this point in the history
…or other functioning of the app (Azure#9667)
  • Loading branch information
chidozieononiwu authored and swathipil committed Feb 4, 2025
1 parent f418534 commit 8c6d7c7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ export class HttpErrorInterceptorService implements HttpInterceptor{
...error,
message: errorMessage
};

if (!environment.production) {
return throwError(() => customError);
}
return of();
return throwError(() => customError);
})
);
}
Expand Down

0 comments on commit 8c6d7c7

Please sign in to comment.