Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using stdout if stderr is empty

  • Loading branch information...
commit ec1f184cd7f52ee1543eee60c5c784d5331cd741 1 parent 82d3874
@mvoidex mvoidex authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 parseoutput.py
View
4 parseoutput.py
@@ -122,10 +122,12 @@ def wait_for_chain_to_complete(view, cabal_project_dir, msg, cmds, on_done):
if exit_code != 0:
break
+ errmsg = stderr if stderr else stdout
+
# Notify UI thread that commands are done
sublime.set_timeout(on_done, 0)
- parse_output_messages_and_show(view, msg, cabal_project_dir, exit_code, stderr)
+ parse_output_messages_and_show(view, msg, cabal_project_dir, exit_code, errmsg)
def format_output_messages(messages):
Please sign in to comment.
Something went wrong with that request. Please try again.