From 4193be829a41491a39b465872120fdeb55ec60b5 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 18 Jan 2022 18:52:58 +0100 Subject: [PATCH] (php8 compat) Minor issue if phar failes to extract --- .../godmode/um_client/lib/UpdateManager/Client.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php index bb62d63959..b048adef34 100644 --- a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php +++ b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php @@ -1582,7 +1582,10 @@ class Client ) { // When PharData failes because of no space left on device // a PHP Notice is received instead of a PharData\Exception. - throw new \Exception(error_get_last()); + $err = error_get_last(); + if ($err !== null) { + throw new \Exception($err['message']); + } } } catch (\Exception $e) { error_reporting($er);