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 (#9667)
  • Loading branch information
chidozieononiwu authored Jan 21, 2025
1 parent d73cf6d commit d679ec9
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 d679ec9

Please sign in to comment.