More meaningful error code in fetchupd.php
This commit is contained in:
parent
901414dcd4
commit
77e97c8a04
@ -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);
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user