Fixes for sonarr, we now display the error messages back to the user

This commit is contained in:
tidusjar 2016-04-07 20:38:36 +01:00
parent 3efd54c1b6
commit 10be8f0440
7 changed files with 55 additions and 16 deletions

View file

@ -442,7 +442,7 @@ namespace PlexRequests.UI.Modules
}
return Response.AsJson(new JsonResponseModel { Result = false, Message = result?.ErrorMessage ?? "Something went wrong adding the movie to Sonarr! Please check your settings." });
return Response.AsJson(ValidationHelper.SendSonarrError(result?.ErrorMessages));
}