mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-09 05:06:09 +02:00
Include LidarrAPI exception message
This commit is contained in:
parent
637f104077
commit
ca1c369c55
1 changed files with 2 additions and 2 deletions
|
|
@ -384,13 +384,13 @@ public List<object> SearchForNewEntity(string title)
|
||||||
catch (SkyHookException ex)
|
catch (SkyHookException ex)
|
||||||
{
|
{
|
||||||
_logger.Warn(ex, $"Album search failed for '{lowerTitle}'.");
|
_logger.Warn(ex, $"Album search failed for '{lowerTitle}'.");
|
||||||
|
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with LidarrAPI. {1}", ex, title, ex.Message);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Warn(ex, $"Album search failed for '{lowerTitle}'.");
|
_logger.Warn(ex, $"Album search failed for '{lowerTitle}'.");
|
||||||
|
throw new SkyHookException("Search for '{0}' failed. Unable to communicate with LidarrAPI. {1}", ex, title, ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new SkyHookException("Search for '{0}' failed. Unable to find artist or album.", title);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue