diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 09:52:13 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 15:18:35 +0100 |
commit | fa24a3df8796cbf4eeb35d950a4c848d605e5b22 (patch) | |
tree | 617edbfe15372e45f7d3aefeb70e969a1ebd4efb /src/rpc/util.cpp | |
parent | 767c012665953557ad02f731a84c6d10907a46af (diff) | |
download | bitcoin-fa24a3df8796cbf4eeb35d950a4c848d605e5b22.tar.xz |
rpc: Quote user supplied strings in error messages
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 4a5cd0a4be..57e3da0351 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -210,7 +210,7 @@ CPubKey AddrToPubKey(const FillableSigningProvider& keystore, const std::string& } CKeyID key = GetKeyForDestination(keystore, dest); if (key.IsNull()) { - throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("%s does not refer to a key", addr_in)); + throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("'%s' does not refer to a key", addr_in)); } CPubKey vchPubKey; if (!keystore.GetPubKey(key, vchPubKey)) { |