Skip to content

Commit b8b9813

Browse files
committed
rpc custom message
1 parent 5c9be39 commit b8b9813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public function updatePool($method = FALSE){
572572
$addresses = $this->getPostRequest('addresses');
573573
$response = $this->db->updatePool($method, $poolId, $addresses);
574574
if (isset($response['error'])) {
575-
$this->sendError(109, 'Error update the pool', 400);
575+
$this->sendError(109, $response['error']['message'] ?? 'Error update the pool', 400);
576576
}
577577
$this->sendResult($response);
578578
}

0 commit comments

Comments
 (0)