mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
Pull Sonarr commit 'Log Skyhook connection failures with more info.' (#6060)
* Log Skyhook connection failures with more info. (cherry picked from commit 6672650b6b5e152e82fb3ad38a0a158d66c0b83d) * Log Skyhook connection failures with more info. (cherry picked from commit f57cf1561beb7ee4a1b3afcdf391488fc7c04d02) Co-authored-by: Taloth Saldono <Taloth@users.noreply.github.com>
This commit is contained in:
@@ -421,14 +421,20 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
||||
|
||||
return httpResponse.Resource.SelectList(MapSearchResult);
|
||||
}
|
||||
catch (HttpException)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with TMDb.", title);
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with TMDb.", ex, title);
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with TMDb.", ex, title, ex.Message);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Warn(ex, ex.Message);
|
||||
throw new SkyHookException("Search for '{0}' failed. Invalid response received from TMDb.", title);
|
||||
_logger.Warn(ex);
|
||||
throw new SkyHookException("Search for '{0}' failed. Invalid response received from TMDb.", ex, title);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user