aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorReese Russell <reese.russell@ymail.com>2023-08-18 02:34:10 +0000
committerReese Russell <reese.russell@ymail.com>2023-08-18 04:04:06 +0000
commit6e8f6468cbf1320b70cf01333002a31b44cb7c33 (patch)
tree3044951c8605bfcc8be81294929f94096ceeff47 /src/rpc
parent6ce5e8f4758e6fccf59b3980af417ec6c75e383e (diff)
removed StrFormatInternalBug quote delimitation
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/util.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp
index 08a778a60e..5029c6dd1c 100644
--- a/src/rpc/util.cpp
+++ b/src/rpc/util.cpp
@@ -1141,10 +1141,9 @@ std::string RPCArg::ToString(const bool oneline) const
if (oneline && !m_opts.oneline_description.empty()) {
if (m_opts.oneline_description[0] == '\"' && m_type != Type::STR_HEX && m_type != Type::STR && gArgs.GetBoolArg("-rpcdoccheck", DEFAULT_RPC_DOC_CHECK)) {
throw std::runtime_error{
- strprintf("Internal bug detected: non-string RPC arg \"%s\" quotes oneline_description:\n%s\n%s %s\nPlease report this issue here: %s\n",
- m_names, m_opts.oneline_description,
- PACKAGE_NAME, FormatFullVersion(),
- PACKAGE_BUGREPORT)};
+ STR_INTERNAL_BUG(strprintf("non-string RPC arg \"%s\" quotes oneline_description:\n%s",
+ m_names, m_opts.oneline_description)
+ )};
}
return m_opts.oneline_description;
}