Skip to content

Commit 7258448

Browse files
Update Client.php
1 parent 6282194 commit 7258448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ private function handleResult(
2222
array $aAcceptableErrorCodes = []
2323
): bool {
2424
if ($iResult != EM_RESULT_OK && !in_array($iErrorCode, $aAcceptableErrorCodes)) {
25-
throw new \RuntimeException('Check the correctness of functions invokation order.');
25+
euspe_geterrdescr($iErrorCode, $sErrorDescription);
26+
throw new \RuntimeException('Check the correctness of functions invoсation order.' .
27+
'Code: ' . $iErrorCode . ' Description: ' . $sErrorDescription);
2628
}
2729
if (!empty($iErrorCode) && !in_array($iErrorCode, $aAcceptableErrorCodes)) {
2830
euspe_geterrdescr($iErrorCode, $sErrorDescription);

0 commit comments

Comments
 (0)