mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
cli: improve -netinfo invalid argument error message
This commit is contained in:
parent
3732404afa
commit
6b45ef3233
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue