<!-- Describe the issue -->
$ bitcoin-cli validateaddress invalid
{
"isvalid": false,
"error": "Invalid address format"
}
$ echo $?
0
Expected behavior
$ bitcoin-cli validateaddress invalid
{
"isvalid": false,
"error": "Invalid address format"
}
$ echo $?
1
<!--- What behavior did you expect? -->
I expect the process return value to be greater than zero and this would help a lot in scripting.
To reproduce
Just run the commands listed above. 100% reproducible on current master 19815b096.