Give more errors for specific failure conditions

Some failure conditions implicitly fail by failing some other check.
But the error messages are more helpful if they say explicitly what
actually caused the failure, so add those as failure conditions and
errors.
This commit is contained in:
Andrew Chow
2019-08-02 19:19:53 -04:00
parent c325f619dd
commit 625534d7b1
6 changed files with 67 additions and 18 deletions

View File

@ -552,7 +552,7 @@ class ImportMultiTest(BitcoinTestFramework):
"keys": [key.privkey]},
success=False,
error_code=-5,
error_message="Descriptor is invalid, Missing checksum")
error_message="Missing checksum")
# Test importing of a P2SH-P2WPKH address via descriptor + private key
key = get_key(self.nodes[0])