(php8 compat) Minor issue if phar failes to extract

This commit is contained in:
fbsanchez 2022-01-18 18:52:58 +01:00
parent c8477a34b2
commit 4193be829a
1 changed files with 4 additions and 1 deletions

View File

@ -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);