From 9fbc36f9ac6e09eee9cacb089925080657f380b2 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 10 Jan 2014 17:08:11 +0100 Subject: [PATCH] [FIX] Re-added simple error to jsonRPC --- public/include/jsonRPCClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/include/jsonRPCClient.php b/public/include/jsonRPCClient.php index 6383f6fa..2100578f 100644 --- a/public/include/jsonRPCClient.php +++ b/public/include/jsonRPCClient.php @@ -137,7 +137,9 @@ class jsonRPCClient { $this->debug && $this->debug.='***** Server response *****'."\n".$response.'***** End of server response *****'."\n"; $response = json_decode($response,true); } else { - throw new Exception('Unable to connect'); + $error = error_get_last(); + $error = explode(']: ', $error['message']); + throw new Exception('Unable to connect: ' . $error[1]); } // debug output