From 0049922ab6809be48e96726a4f4006d711051b7d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 10 Oct 2024 21:17:20 +0300 Subject: [PATCH] Include exception message in SkyHook failure message --- frontend/src/AddMovie/AddNewMovie/AddNewMovie.js | 4 +++- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js b/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js index 29bdaa313..c49a50a4e 100644 --- a/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js +++ b/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js @@ -131,7 +131,9 @@ class AddNewMovie extends Component {
{translate('FailedLoadingSearchResults')}
- {getErrorMessage(error)} + + {getErrorMessage(error)} +
{translate('WhySearchesCouldBeFailing')} diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index 6428b1e1f..23adbfe6a 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -534,17 +534,17 @@ namespace NzbDrone.Core.MetadataSource.SkyHook catch (HttpException ex) { _logger.Warn(ex); - throw new SkyHookException("Search for '{0}' failed. Unable to communicate with RadarrAPI.", ex, title); + throw new SkyHookException("Search for '{0}' failed. Unable to communicate with RadarrAPI. {1}", ex, title, ex.Message); } catch (WebException ex) { _logger.Warn(ex); - throw new SkyHookException("Search for '{0}' failed. Unable to communicate with RadarrAPI.", ex, title, ex.Message); + throw new SkyHookException("Search for '{0}' failed. Unable to communicate with RadarrAPI. {1}", ex, title, ex.Message); } catch (Exception ex) { _logger.Warn(ex); - throw new SkyHookException("Search for '{0}' failed. Invalid response received from RadarrAPI.", ex, title); + throw new SkyHookException("Search for '{0}' failed. Invalid response received from RadarrAPI. {1}", ex, title, ex.Message); } }