mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-18 20:50:41 -04:00
Throw proper ocis-wrapper connection error message (#6532)
This commit is contained in:
1 parent
31a3e08cc9
commit
3cdc3bc485
1 file changed
+7
-1
@@ -22,6 +22,7 @@
|
||||
|
||||
namespace TestHelpers;
|
||||
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
use TestHelpers\HttpRequestHelper;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
@@ -51,7 +52,12 @@ class OcisConfigHelper {
|
||||
[],
|
||||
$body
|
||||
);
|
||||
return $client->send($request);
|
||||
|
||||
try {
|
||||
return $client->send($request);
|
||||
} catch (ConnectException $e) {
|
||||
throw new Error("Cannot connect to the ociswrapper at the moment, make sure that ociswrapper is running before proceeding with the test run.\n" . $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user