Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 448eb43

Browse files
committed
We should be consistent with the error codes equals to zero
1 parent de0cdae commit 448eb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guzzle6HttpAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function sendRequest(RequestInterface $request)
5050
throw $this->handleRequestException($e);
5151
} catch (Guzzle\TransferException $e) {
5252
//TODO make sure TransferException is not abstract
53-
throw new TransferException($e->getMessage(), $e->getCode(), $e);
53+
throw new TransferException($e->getMessage(), 0, $e);
5454
} catch (Guzzle\SeekException $e) {
5555
throw new RequestException($e->getMessage(), $request, $e);
5656
}

0 commit comments

Comments
 (0)