mirror of
https://github.com/mhinz/neovim-remote
synced 2024-11-11 13:10:34 +00:00
Catch --remote-expr failures
This commit is contained in:
parent
012e97d29c
commit
8e7d5ff995
7
nvr
7
nvr
@ -186,7 +186,12 @@ def main():
|
||||
|
||||
if args.remote_expr and n.attached():
|
||||
for expr in args.remote_expr[0]:
|
||||
result = n.server.eval(expr)
|
||||
result = ''
|
||||
try:
|
||||
result = n.server.eval(expr)
|
||||
except:
|
||||
print('Evaluation failed: ' + expr)
|
||||
continue
|
||||
if type(result) is bytes:
|
||||
print(result.decode())
|
||||
elif type(result) is list:
|
||||
|
Loading…
Reference in New Issue
Block a user