Skip to content

Commit 8c413fd

Browse files
committed
Fixed bug resulting in returning empty array instead of correct JSON-RPC response in case of error in JSON-RPC request.
1 parent 30dd51e commit 8c413fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ public function runWithParams($params)
175175
$response[] = $this->$renderMethod($executionResult, $request->id);
176176
}
177177
elseif ($request instanceof JsonRpcException) {
178-
$this->renderError($request, $request->id);
178+
$response[] = $this->renderError($request, $request->id);
179179
}
180180
else {
181-
$this->renderError($request, null);
181+
$response[] = $this->renderError($request, null);
182182
}
183183
}
184184

0 commit comments

Comments
 (0)