--- /Applications/mampstack-1.2-1/apache2/htdocs/pocoapps/sites/all/modules/jsonrpc_server/JsonRpcServer.php.original
+++ JsonRpcServer.php
@@ -160,8 +160,8 @@
     //Call service method
     try {
       $result = services_method_call($this->method['method'], $this->args);
-      if (is_array($result) && isset($result['error']) && $result['error'] === TRUE) {
-        return $this->error(JSONRPC_ERROR_INTERNAL_ERROR, $result['message']);
+      if (is_array($result) && isset($result['error'])) {
+        return $this->error($result['error'], $result['message']);
       }
       else {
         return $this->result($result);
@@ -205,8 +205,15 @@
   }
 
   private function error($code, $message) {
-    $response = array('error' => array('name' => 'JSONRPCError', 'code' => $code, 'message' => $message));
-    return $this->response($response);
+	  $response = array('error' => array('code' => $code, 'message' => $message));
+	
+    switch ($this->major_version) {
+      case 1:
+				$response['error']['name'] = 'JSONRPCError';
+        break;
+    }
+
+		return $this->response($response);
   }
 
   private function error_wrong_type(&$arg, $type){
