From ac867de609d0c51e7bd79b02db91d3e7f53bdc27 Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Fri, 16 Nov 2018 21:51:54 +0100 Subject: [PATCH] Create proper error string for returning --- get.php | 4 ++-- shared/main.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/get.php b/get.php index de1dd96..a4910a3 100644 --- a/get.php +++ b/get.php @@ -218,8 +218,8 @@ function uupGetFiles( consoleLogger('Parsing information...'); $xmlOut = @simplexml_load_string($out); if($xmlOut === false) { - unlink('cache/'.$cacheHash.'.json.gz'); - return array('error' => 'ERROR'); + @unlink('cache/'.$cacheHash.'.json.gz'); + return array('error' => 'XML_PARSE_ERROR'); } $xmlBody = $xmlOut->children('s', true)->Body->children(); diff --git a/shared/main.php b/shared/main.php index 6c1e062..ff71af7 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.16.1'; + return '1.16.2'; } require_once dirname(__FILE__).'/auths.php';