Skip to content

Commit 5b1fe8a

Browse files
author
Petrescu Victor
committed
Added last http code as exception code
1 parent 0e1c69c commit 5b1fe8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ShopifyResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ public function processResponse($responseArray, $dataKey = null)
492492

493493
if (isset($responseArray['errors'])) {
494494
$message = $this->castString($responseArray['errors']);
495-
496-
throw new ApiException($message);
495+
z
496+
throw new ApiException($message, CurlRequest::$lastHttpCode);
497497
}
498498

499499
if ($dataKey && isset($responseArray[$dataKey])) {

0 commit comments

Comments
 (0)