From fe87d2cf4d4c9f2f69fa656b55b315aa18933b57 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:09:57 +0000 Subject: [PATCH] Don't log error response. --- src/main/java/me/kavin/piped/utils/ExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/ExceptionHandler.java b/src/main/java/me/kavin/piped/utils/ExceptionHandler.java index 529956f..86fb1f6 100644 --- a/src/main/java/me/kavin/piped/utils/ExceptionHandler.java +++ b/src/main/java/me/kavin/piped/utils/ExceptionHandler.java @@ -20,7 +20,7 @@ public class ExceptionHandler { if (e.getCause() != null && (e instanceof ExecutionException || e instanceof CompletionException)) e = (Exception) e.getCause(); - if (!(e instanceof ContentNotAvailableException)) { + if (!(e instanceof ContentNotAvailableException || e instanceof ErrorResponse)) { Sentry.captureException(e); if (Constants.SENTRY_DSN.isEmpty()) { if (path != null)