Include LidarrAPI exception message

This commit is contained in:
bakerboy448 2025-08-27 07:19:00 -05:00 committed by sharinganthief
parent 637f104077
commit ca1c369c55

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