More meaningful error code in fetchupd.php

This commit is contained in:
mkuba50 2017-09-30 16:42:48 +02:00
parent 901414dcd4
commit 77e97c8a04
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
preg_match('/<Files>.*<\/Files>/', $out, $fileList); preg_match('/<Files>.*<\/Files>/', $out, $fileList);
if(empty($fileList[0])) { if(empty($fileList[0])) {
consoleLogger('An error has occured'); consoleLogger('An error has occured');
return array('error' => 'ERROR'); return array('error' => 'EMPTY_FILELIST');
} }
preg_match('/<FlightMetadata>.*?<Relationships>/', $out, $out2); preg_match('/<FlightMetadata>.*?<Relationships>/', $out, $out2);

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '0.5.0-beta'; return '0.5.1-beta';
} }
function uupApiPrintBrand() { function uupApiPrintBrand() {