Skip to content

Commit 030af82

Browse files
committed
client shouldn't use echo on exception
on curl exception other than 'cURL error 28' client used to echo message directly to stdout which if used in a web application goes to http response and therefore causes trouble
1 parent 5f025e0 commit 030af82

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/RecommApi/Client.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public function send(Requests\Request $request) {
8181
catch(\Requests_Exception $e)
8282
{
8383
if(strpos($e->getMessage(), 'cURL error 28') !== false) throw new ApiTimeoutException($request);
84-
echo "{$e->getMessage()}";
8584
throw $e;
8685
}
8786

0 commit comments

Comments
 (0)