Permalink
Browse files

Using stdout if stderr is empty

  • Loading branch information...
1 parent 82d3874 commit ec1f184cd7f52ee1543eee60c5c784d5331cd741 @mvoidex mvoidex committed Mar 30, 2013
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):

0 comments on commit ec1f184

Please sign in to comment.