mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
RPC client: exit code 1 if RPC server returned error
This commit is contained in:
parent
b891d3dc85
commit
b72f8a8c9a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue