mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
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
|
// When PharData failes because of no space left on device
|
||||||
// a PHP Notice is received instead of a PharData\Exception.
|
// 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) {
|
} catch (\Exception $e) {
|
||||||
error_reporting($er);
|
error_reporting($er);
|
||||||
|
@ -181,7 +181,7 @@ class ClientTest extends \PHPUnit\Framework\TestCase
|
|||||||
{
|
{
|
||||||
// Load the conf.
|
// Load the conf.
|
||||||
try {
|
try {
|
||||||
$this->conf = new \Config('client/conf/test.ini');
|
$this->conf = new \Config(__DIR__.'/../conf/test.ini');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->fail($e->getMessage());
|
$this->fail($e->getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user