Gracefully handle lack of the cookie

This commit is contained in:
2023-11-08 23:58:39 +01:00
parent 1ef84cb879
commit 0477fd5fa6
6 changed files with 13 additions and 4 deletions

View File

@ -122,7 +122,7 @@ function uupFetchUpd(
consoleLogger('Fetching information from the server...');
$composerArgs = [$arch, $flight, $ring, $build, $sku, $type, $flags];
$out = sendWuPostRequestHelper('client', 'composeFetchUpdRequest', $composerArgs);
if($out['error'] != 200) {
if($out === false || $out['error'] != 200) {
consoleLogger('The request has failed');
return array('error' => 'WU_REQUEST_FAILED');
}