Skip to content

Commit

Permalink
handle asanpardakht exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamnbyn committed Dec 26, 2022
1 parent a5e1f43 commit 135fd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/AsanPardakhtProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function checkWalletBalance(): JsonResponse|array
} catch (ClientException|\Exception $exception) {
$exceptionMessage = $this->getBalanceWalletError($exception);
throw new Exception((json_decode($exceptionMessage->content(), false))->message,
$exceptionMessage->statusCode);
$exceptionMessage->statusCode ?? 500);
}
}

Expand Down

0 comments on commit 135fd4e

Please sign in to comment.