Skip to content

Commit

Permalink
fixed verbose output in callit
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Apr 9, 2012
1 parent 2c1d2cd commit 5fde257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodeenv.py
Expand Up @@ -242,8 +242,9 @@ def callit(cmd, show_stdout=True, in_shell=False,

# error handler
if proc.returncode:
for s in all_output:
logger.critical(s)
if show_stdout:
for s in all_output:
logger.critical(s)
raise OSError("Command %s failed with error code %s"
% (cmd_desc, proc.returncode))

Expand Down

0 comments on commit 5fde257

Please sign in to comment.