Skip to content

Commit

Permalink
Fixes #10031 - shows humanized errors in task progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Tsang committed Apr 6, 2015
1 parent 2a51547 commit f159837
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/hammer_cli_foreman_tasks/task_progress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ def progress_message
end

def render_result
unless @task['humanized']['output'].to_s.empty?
puts @task['humanized']['output']
end
puts @task['humanized']['output'] unless @task['humanized']['output'].to_s.empty?
STDERR.puts @task['humanized']['errors'].join('\n') unless @task['humanized']['errors'].to_s.empty?
end

def update_task
Expand Down

0 comments on commit f159837

Please sign in to comment.