Skip to content

Commit 513cdb9

Browse files
committed
Made FAILONERROR an option
1 parent 0e41b59 commit 513cdb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RocketCode/Shopify/api.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public function call($userData = array(), $verifyData = TRUE)
202202
'URL' => '/',
203203
'HEADERS' => array(),
204204
'DATA' => array(),
205+
'FAILONERROR' => TRUE,
205206
'RETURNARRAY' => FALSE,
206207
'ALLDATA' => FALSE
207208
);
@@ -246,7 +247,7 @@ public function call($userData = array(), $verifyData = TRUE)
246247
CURLOPT_CUSTOMREQUEST => strtoupper($request['METHOD']),
247248
CURLOPT_ENCODING => '',
248249
CURLOPT_USERAGENT => 'RocketCode Shopify API Wrapper',
249-
CURLOPT_FAILONERROR => FALSE
250+
CURLOPT_FAILONERROR => $request['FAILONERROR']
250251
);
251252

252253
// Checks if DATA is being sent

0 commit comments

Comments
 (0)