diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-01 00:57:12 +1300 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-01 00:26:08 +1300 |
commit | fa4c599145843b0d3cf998d661281a39bc438d95 (patch) | |
tree | 35172a442e97a4d89e7066fbe9b6f01bbd927137 /src/script/descriptor.cpp | |
parent | 623745ca74cf3f54b474dac106f5802b7929503f (diff) | |
download | bitcoin-fa4c599145843b0d3cf998d661281a39bc438d95.tar.xz |
rpc: Quote user supplied descriptor in error msg
Diffstat (limited to 'src/script/descriptor.cpp')
-rw-r--r-- | src/script/descriptor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 0cc38b3003..84040bf847 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2021 The Bitcoin Core developers +// Copyright (c) 2018-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -1222,7 +1222,7 @@ std::unique_ptr<DescriptorImpl> ParseScript(uint32_t& key_exp_index, Span<const error = "A function is needed within P2WSH"; return nullptr; } - error = strprintf("%s is not a valid descriptor function", std::string(expr.begin(), expr.end())); + error = strprintf("'%s' is not a valid descriptor function", std::string(expr.begin(), expr.end())); return nullptr; } |