Browse Source

Error management

pull/271/head
alxlaxv 7 years ago
committed by GitHub
parent
commit
3271b382b6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/SupportedApps/Sonarr.php

7
app/SupportedApps/Sonarr.php

@ -24,9 +24,16 @@ class Sonarr implements Contracts\Applications, Contracts\Livestats {
echo 'Successfully connected to Sonarr API version ' . $status->version;
}
else if(isset($status->error))
{
if($status->error == "Unauthorized")
{
echo 'Incorrect API Key. You can find it in Settings > General';
}
else
{
echo 'Error: '. $status->error;
}
}
else
{
echo 'Something went wrong';

Loading…
Cancel
Save