From 071991428b3143a52ec7274ef7ae4d6db2dfd3a7 Mon Sep 17 00:00:00 2001 From: Sylvain Blanc Date: Sun, 29 Oct 2023 11:07:11 +0100 Subject: [PATCH] stop spamming errors --- backend/jellyfin/jellyfin-client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/jellyfin/jellyfin-client.js b/backend/jellyfin/jellyfin-client.js index 4356bd10..7987b0f0 100644 --- a/backend/jellyfin/jellyfin-client.js +++ b/backend/jellyfin/jellyfin-client.js @@ -181,7 +181,11 @@ class JellyfinClient { return response.data.MediaSources; } catch (error) { - console.log(error); + if (error.response) { + console.log(error.toJSON()); + } else { + console.log(error) + } return []; } }