Include LidarrAPI exception message

This commit is contained in:
bakerboy448 2025-08-27 07:19:00 -05:00
parent 90751998e2
commit cadb839dd0

View file

@ -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