From fb0063a10e6c98cf606de1f45876302811914065 Mon Sep 17 00:00:00 2001 From: oceanapplications Date: Tue, 14 Nov 2017 20:37:19 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.php b/src/client.php index d4f8a67..3dacc1c 100644 --- a/src/client.php +++ b/src/client.php @@ -230,6 +230,7 @@ protected function request($endpoint, $params) if (array_key_exists('error', $rsp)) { $error = $rsp['error']; + throw new \InvalidArgumentException($error['info'], $error['code']); }