blocktrail-sdk-php
blocktrail-sdk-php copied to clipboard
feature request: whitelist restriction error message with ip address
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 )"}