From d6438eba5241818e0889112aedd0c0df0de15c82 Mon Sep 17 00:00:00 2001 From: serhack Date: Thu, 14 Sep 2017 21:07:53 +0200 Subject: [PATCH] Update library.php --- monero/library.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monero/library.php b/monero/library.php index 0474fc7..2aafb7d 100644 --- a/monero/library.php +++ b/monero/library.php @@ -75,7 +75,7 @@ class Monero_Library } else { - throw new InvalidArgumentException('Invalid options type.'); + echo 'Invalid options type.'; } return $this; } @@ -146,12 +146,12 @@ class Monero_Library $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if (isset($this->httpErrors[$httpCode])) { - throw new RuntimeException('Response Http Error - ' . $this->httpErrors[$httpCode]); + echo 'Response Http Error - ' . $this->httpErrors[$httpCode]; } // check for curl error if (0 < curl_errno($ch)) { - throw new RuntimeException('Unable to connect to '.$this->url . ' Error: ' . curl_error($ch)); + echo 'Unable to connect to '.$this->url . ' Error: ' . curl_error($ch); } // close the connection curl_close($ch); @@ -162,7 +162,7 @@ class Monero_Library { if ($pFailed) { - throw new RuntimeException($pErrMsg); + echo $pErrMsg; } }