Api changed again, so more fixes for #878

This commit is contained in:
Jamie.Rees 2017-01-09 08:47:28 +00:00
commit 6048053c3c
10 changed files with 20 additions and 20 deletions

View file

@ -114,7 +114,7 @@ namespace Ombi.UI.Modules
try
{
var status = WatcherApi.Version(settings.ApiKey, settings.FullUri);
return !status.response
return status.response
? Response.AsJson(new JsonResponseModel { Result = true, Message = "Connected to Watcher successfully!" })
: Response.AsJson(new JsonResponseModel { Result = false, Message = $"Could not connect to Watcher, Error: {status.ErrorMessage}" });