cli: improve -netinfo invalid argument error message

This commit is contained in:
Jon Atack 2021-01-07 13:51:28 +01:00
parent 3732404afa
commit 6b45ef3233
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D

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);