aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/check-rpc-mappings.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/devtools/check-rpc-mappings.py')
-rwxr-xr-xcontrib/devtools/check-rpc-mappings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/check-rpc-mappings.py b/contrib/devtools/check-rpc-mappings.py
index d2698de041..7e96852c5c 100755
--- a/contrib/devtools/check-rpc-mappings.py
+++ b/contrib/devtools/check-rpc-mappings.py
@@ -63,7 +63,7 @@ def process_commands(fname):
else:
args = []
cmds.append(RPCCommand(name, args))
- assert not in_rpcs, "Something went wrong with parsing the C++ file: update the regexps"
+ assert not in_rpcs and cmds, "Something went wrong with parsing the C++ file: update the regexps"
return cmds
def process_mapping(fname):
@@ -86,7 +86,7 @@ def process_mapping(fname):
idx = int(m.group(2))
argname = parse_string(m.group(3))
cmds.append((name, idx, argname))
- assert not in_rpcs
+ assert not in_rpcs and cmds
return cmds
def main():