From 073d9cae9e166f49ffa5c64fcc232719d40469f4 Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 29 Jan 2022 16:20:55 +0100 Subject: [PATCH] removed debug info --- src/Controller/CheckController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Controller/CheckController.php b/src/Controller/CheckController.php index c2dd61a..29e47ad 100644 --- a/src/Controller/CheckController.php +++ b/src/Controller/CheckController.php @@ -63,8 +63,9 @@ class CheckController case 401: $result = 'Missing or wrong API Key'; break; + case 404: + $result = '404 Not Found'; default: - echo __FILE__, __LINE__, $resultJSON; $result = 'Unhandled error: ' . $httpResponse; } } else { @@ -73,7 +74,7 @@ class CheckController } curl_close(handle: $curl); return [ - 'error' => true, + 'error' => $error, 'data' => $result, 'header' => $httpResponse ?? '' ];