blocktrail-sdk-php icon indicating copy to clipboard operation
blocktrail-sdk-php copied to clipboard

feature request: whitelist restriction error message with ip address

Open abgit opened this issue 7 years ago • 0 comments

When whitelist is applied could be useful if we get a more details about the ip that do not match whitelist.

Currently, when a call is not in whitelist we get this error message:

blocktrail/blocktrail-sdk/src/Connection/RestClient.php:344 Blocktrail\SDK\Connection\RestClient::responseHandler
A Server Error has occurred! Server Response: {"code":0,"msg":"Unable to co-sign transction due to IP whitelist restrictions"} 

Would be even better if api included in message IP address that trigger the error, eg:

A Server Error has occurred! Server Response: {"code":0,"msg":"Unable to co-sign transaction due to IP whitelist restrictions ( 1.2.3.4 )"} 

abgit avatar Jul 05 '17 10:07 abgit