Don't log error response.

This commit is contained in:
Kavin 2022-10-31 11:09:57 +00:00
parent 2ab8fde0bb
commit fe87d2cf4d
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -20,7 +20,7 @@ public class ExceptionHandler {
if (e.getCause() != null && (e instanceof ExecutionException || e instanceof CompletionException)) if (e.getCause() != null && (e instanceof ExecutionException || e instanceof CompletionException))
e = (Exception) e.getCause(); e = (Exception) e.getCause();
if (!(e instanceof ContentNotAvailableException)) { if (!(e instanceof ContentNotAvailableException || e instanceof ErrorResponse)) {
Sentry.captureException(e); Sentry.captureException(e);
if (Constants.SENTRY_DSN.isEmpty()) { if (Constants.SENTRY_DSN.isEmpty()) {
if (path != null) if (path != null)