sync with updatemanager repo
This commit is contained in:
parent
130b077202
commit
2f304f9250
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue