From 3271b382b6c98f87c8b4319d3e508aaaf22ed345 Mon Sep 17 00:00:00 2001 From: alxlaxv <35723598+alxlaxv@users.noreply.github.com> Date: Fri, 19 Oct 2018 22:39:55 +0200 Subject: [PATCH] Error management --- app/SupportedApps/Sonarr.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/SupportedApps/Sonarr.php b/app/SupportedApps/Sonarr.php index d40c0deb..7a41e324 100644 --- a/app/SupportedApps/Sonarr.php +++ b/app/SupportedApps/Sonarr.php @@ -25,7 +25,14 @@ class Sonarr implements Contracts\Applications, Contracts\Livestats { } else if(isset($status->error)) { - echo 'Error: '. $status->error; + if($status->error == "Unauthorized") + { + echo 'Incorrect API Key. You can find it in Settings > General'; + } + else + { + echo 'Error: '. $status->error; + } } else {