cli: improve -netinfo invalid argument error message

This commit is contained in:
Jon Atack committed 2021-02-17 15:05:01 +01:00
1 parent 3732404afa
commit 6b45ef3233
1 file changed
+1 -1
+1 -1
View File
@@ -379,7 +379,7 @@ public:
if (ParseUInt8(args.at(0), &n)) {
m_details_level = std::min(n, MAX_DETAIL_LEVEL);
} else {
throw std::runtime_error(strprintf("invalid -netinfo argument: %s", args.at(0)));
throw std::runtime_error(strprintf("invalid -netinfo argument: %s\nFor more information, run: bitcoin-cli -netinfo help", args.at(0)));
}
}
UniValue result(UniValue::VARR);