File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ static UniValue echo(const JSONRPCRequest& request)
461
461
throw std::runtime_error (
462
462
RPCHelpMan{" echo|echojson ..." ,
463
463
" \n Simply echo back the input arguments. This command is for testing.\n "
464
- " \n The difference between echo and echojson is that echojson has argument conversion enabled in the client-side table in"
464
+ " \n The difference between echo and echojson is that echojson has argument conversion enabled in the client-side table in "
465
465
" bitcoin-cli and the GUI. There is no server-side difference." ,
466
466
{}}
467
467
.ToString () +
Original file line number Diff line number Diff line change 3
3
# Copyright (c) 2018 The Bitcoin Core developers
4
4
# Distributed under the MIT software license, see the accompanying
5
5
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+ #
7
+ # Check that all RPC help texts are generated by RPCHelpMan.
6
8
7
9
export LC_ALL=C
8
10
9
11
EXIT_CODE=0
12
+
13
+ # Assume that all multiline strings passed into a runtime_error are help texts.
14
+ # This is potentially fragile, but the linter is only temporary and can safely
15
+ # be removed early 2019.
16
+
10
17
non_autogenerated_help=$( grep --perl-regexp --null-data --only-matching ' runtime_error\(\n\s*".*\\n"\n' $( git ls-files -- " *.cpp" ) )
11
18
if [[ ${non_autogenerated_help} != " " ]]; then
12
19
echo " Must use RPCHelpMan to generate the help for the following RPC methods:"
You can’t perform that action at this time.
0 commit comments