From 6b45ef32331dd3efb863d1d2f7405e2665565905 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 7 Jan 2021 13:51:28 +0100 Subject: [PATCH] cli: improve -netinfo invalid argument error message --- src/bitcoin-cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);