rpc: Quote user supplied strings in error messages

This commit is contained in:
MarcoFalke
2021-12-13 09:52:13 +01:00
parent 767c012665
commit fa24a3df87
4 changed files with 8 additions and 8 deletions

View File

@ -329,7 +329,7 @@ class BlockchainTest(BitcoinTestFramework):
assert 'muhash' not in r
# Unknown hash_type raises an error
assert_raises_rpc_error(-8, "foohash is not a valid hash_type", node.gettxoutsetinfo, "foohash")
assert_raises_rpc_error(-8, "'foo hash' is not a valid hash_type", node.gettxoutsetinfo, "foo hash")
def _test_getblockheader(self):
self.log.info("Test getblockheader")