Check shell return code in addition to output#19
Check shell return code in addition to output#19lucerion merged 2 commits intoruby-formatter:masterfrom
Conversation
9382dde to
9b37795
Compare
9b37795 to
c770ef4
Compare
|
@splattael I've updated the PR, it was incorrectly assuming non-zero is an error, but rufo would exit with code Something still bugs me, though, that is the "first output line contains the word |
|
@13k it's a hack that can be completely deleted and we can use exit codes only. When I've added it (#5) there was no exit codes in |
900327f to
6a21199
Compare
|
@lucerion @splattael Updated the PR. It now checks only the exit code. Thanks for your feedback! |
|
@13k good job! Thank you! |



When the
rufocommand does not exist, or outputs something with a non-success exit code, the current failure check considers the run as successful, replacing the original buffer with the error message.By checking the command return code (
v:shell_error), it correctly displays the message in the error buffer and keeps the original buffer intact.