Skip to content

Commit

Permalink
Merge pull request #4 from kellycampbell/exec_errors
Browse files Browse the repository at this point in the history
Add error output to exec error messages
  • Loading branch information
Pegase745 authored Sep 11, 2017
2 parents a4b5c65 + fc472d0 commit 44f1d8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flowtype/commands/exec_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ def run(self):

os.close(read)
except subprocess.CalledProcessError as err:
self.stderr = str(err)
if type(err.output) is bytes:
output = err.output.decode('utf-8')
else:
output = err.output
self.stderr = str(err) + ': ' + str(output)
self.returncode = 1

0 comments on commit 44f1d8e

Please sign in to comment.