We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781c3b0 commit 9683fa1Copy full SHA for 9683fa1
tests/testsoap.php
@@ -10,6 +10,7 @@
10
* @param $config
11
*
12
* @return \SoapClient
13
+ * @throws Exception
14
*/
15
function getDbTunnel($tunnel_url, $config){
16
@@ -24,8 +25,9 @@ function getDbTunnel($tunnel_url, $config){
24
25
$db->setConfig($config);
26
27
} catch (SoapFault $fault) {
- trigger_error("SOAP-Error: (Error No: {$fault->faultcode}, "
28
- . "Error: {$fault->faultstring})", E_USER_ERROR);
+ $errorMsg = "SOAP-Error: (Error No: {$fault->faultcode}, "
29
+ . "Error: {$fault->faultstring})";
30
+ throw new Exception($errorMsg);
31
}
32
return $db;
33
0 commit comments