Skip to content

Commit 3f6cbc5

Browse files
committed
Fix catched exception class at SoapClient::__call()
1 parent 307b045 commit 3f6cbc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SoapClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ public function __call($functionName, $arguments = null)
198198

199199
try {
200200
$result = parent::__call($functionName, $arguments, null, $this->_headers, null);
201-
} catch (SoapFault $e) {
202-
throw new \Exception('There was an error querying the SoftLayer API: ' . $e->getMessage());
201+
} catch (\SoapFault $e) {
202+
throw new \Exception('There was an error querying the SoftLayer API: ' . $e->getMessage(), 0, $e);
203203
}
204204

205205
if ($this->_asynchronous == true) {

0 commit comments

Comments
 (0)