mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-25 22:46:31 -04:00
Include exception message in SkyHook failure message
This commit is contained in:
@@ -147,17 +147,17 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
||||
catch (HttpException ex)
|
||||
{
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with SkyHook.", ex, title);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with SkyHook. {1}", ex, title, ex.Message);
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with SkyHook.", ex, title, ex.Message);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with SkyHook. {1}", ex, title, ex.Message);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Invalid response received from SkyHook.", ex, title);
|
||||
throw new SkyHookException("Search for '{0}' failed. Invalid response received from SkyHook. {1}", ex, title, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user