Fix the exception in #440

This commit is contained in:
tidusjar 2016-07-26 20:01:29 +01:00
parent f03392691c
commit 85baa67f29
3 changed files with 120 additions and 113 deletions

View file

@ -637,8 +637,8 @@ namespace PlexRequests.UI.Modules
{
return await AddRequest(model, settings, $"{fullShowName} {Resources.UI.Search_SuccessfullyAdded}");
}
return Response.AsJson(ValidationHelper.SendSonarrError(result?.ErrorMessages));
Log.Debug("Error with sending to sonarr.");
return Response.AsJson(ValidationHelper.SendSonarrError(result?.ErrorMessages ?? new List<string>()));
}
var srSettings = SickRageService.GetSettings();