Include exception message in SkyHook failure message

pull/10548/head
Bogdan 3 months ago
parent 3c995a0fff
commit 0049922ab6

@ -131,7 +131,9 @@ class AddNewMovie extends Component {
<div className={styles.helpText}>
{translate('FailedLoadingSearchResults')}
</div>
<Alert kind={kinds.WARNING}>{getErrorMessage(error)}</Alert>
<Alert kind={kinds.DANGER}>{getErrorMessage(error)}</Alert>
<div>
<Link to="https://wiki.servarr.com/radarr/troubleshooting#invalid-response-received-from-tmdb">
{translate('WhySearchesCouldBeFailing')}

@ -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);
}
}

Loading…
Cancel
Save