mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
cli: improve -netinfo invalid argument error message
This commit is contained in:
@@ -379,7 +379,7 @@ public:
|
|||||||
if (ParseUInt8(args.at(0), &n)) {
|
if (ParseUInt8(args.at(0), &n)) {
|
||||||
m_details_level = std::min(n, MAX_DETAIL_LEVEL);
|
m_details_level = std::min(n, MAX_DETAIL_LEVEL);
|
||||||
} else {
|
} 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);
|
UniValue result(UniValue::VARR);
|
||||||
|
|||||||
Reference in New Issue
Block a user