Skip to content

Commit fcb32a0

Browse files
committed
Fix returncode handling on error
1 parent 9255a19 commit fcb32a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-sourcekit-lsp/test-sourcekit-lsp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ def main():
141141
if p.returncode == 0:
142142
print('OK')
143143
else:
144-
print('error: sourcekit-lsp exited with code {}'.format(exitcode))
144+
print('error: sourcekit-lsp exited with code {}'.format(p.returncode))
145+
sys.exit(1)
145146
# CHECK: OK
146147

147148
if __name__ == "__main__":

0 commit comments

Comments
 (0)