mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-07 20:10:46 +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)
|
||||
{
|
||||
_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)
|
||||
{
|
||||
_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
|
||||
|
|
|
|||
Loading…
Reference in a new issue