sync with updatemanager repo

This commit is contained in:
fbsanchez 2022-02-23 10:53:33 +01:00
parent 130b077202
commit 2f304f9250
2 changed files with 5 additions and 2 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);

View File

@ -181,7 +181,7 @@ class ClientTest extends \PHPUnit\Framework\TestCase
{
// Load the conf.
try {
$this->conf = new \Config('client/conf/test.ini');
$this->conf = new \Config(__DIR__.'/../conf/test.ini');
} catch (\Exception $e) {
$this->fail($e->getMessage());
}