diff options
author | Jon Atack <jon@atack.com> | 2021-01-07 13:51:28 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-02-17 15:05:01 +0100 |
commit | 6b45ef32331dd3efb863d1d2f7405e2665565905 (patch) | |
tree | 60726381edfd67a4885c8c69301003fc1e584659 /src/bitcoin-cli.cpp | |
parent | 3732404afaa15f7a86846327e48cdb9a2027f80c (diff) |
cli: improve -netinfo invalid argument error message
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 592b8a54ab..ee86bac68b 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -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); |