@resize-window now has a useful return code

This commit is contained in:
Kovid Goyal
2018-05-18 00:01:31 +05:30
parent 3875ee021a
commit 05ec174868
3 changed files with 10 additions and 5 deletions

View File

@@ -130,5 +130,8 @@ def main(args):
if response.get('tb'):
print(response['tb'], file=sys.stderr)
raise SystemExit(response['error'])
if 'data' in response:
print(response['data'])
data = response.get('data')
if data is not None:
if func.string_return_is_error and isinstance(data, str):
raise SystemExit(data)
print(data)