tMerge pull request #6152 from JeremyRand/rpc-error-exit-code - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1322fa6a08f6c591a1911b233e7d6b509c09538a DIR parent b891d3dc8580976887e3bb61be8b504257a949b6 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 10 May 2020 12:01:33 +0200 Merge pull request #6152 from JeremyRand/rpc-error-exit-code RPC client: exit code 1 if RPC server returned error Diffstat: M run_electrum | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/run_electrum b/run_electrum t@@ -433,6 +433,7 @@ if __name__ == '__main__': print_msg(result) elif type(result) is dict and result.get('error'): print_stderr(result.get('error')) + sys_exit(1) elif result is not None: print_msg(json_encode(result)) sys_exit(0)