mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Fixes for sonarr, we now display the error messages back to the user
This commit is contained in:
parent
3efd54c1b6
commit
10be8f0440
7 changed files with 55 additions and 16 deletions
|
@ -100,7 +100,7 @@ namespace PlexRequests.UI.Modules
|
|||
try
|
||||
{
|
||||
var status = SonarrApi.SystemStatus(sonarrSettings.ApiKey, sonarrSettings.FullUri);
|
||||
return status != null
|
||||
return status?.version != null
|
||||
? Response.AsJson(new JsonResponseModel { Result = true, Message = "Connected to Sonarr successfully!" })
|
||||
: Response.AsJson(new JsonResponseModel { Result = false, Message = "Could not connect to Sonarr, please check your settings." });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue