Skip to content

Commit d5341bb

Browse files
committed
Error case added to jsonrpc call
1 parent d83e97d commit d5341bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

service/lib/ethplorer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,6 +3200,9 @@ protected function _jsonrpcall($service, $method, $params = array()){
32003200
if(isset($json["result"])){
32013201
$result = $json["result"];
32023202
}
3203+
if(isset($json["error"])){
3204+
$result = ["error" => $json["error"]];
3205+
}
32033206
}
32043207
return $result;
32053208
}

0 commit comments

Comments
 (0)