Skip to content

Commit 6b45ef3

Browse files
committed
cli: improve -netinfo invalid argument error message
1 parent 3732404 commit 6b45ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
379379
if (ParseUInt8(args.at(0), &n)) {
380380
m_details_level = std::min(n, MAX_DETAIL_LEVEL);
381381
} else {
382-
throw std::runtime_error(strprintf("invalid -netinfo argument: %s", args.at(0)));
382+
throw std::runtime_error(strprintf("invalid -netinfo argument: %s\nFor more information, run: bitcoin-cli -netinfo help", args.at(0)));
383383
}
384384
}
385385
UniValue result(UniValue::VARR);

0 commit comments

Comments
 (0)