Skip to content

Commit

Permalink
Merge pull request #18 from dustints/redmine10031
Browse files Browse the repository at this point in the history
Fixes #10031 - shows humanized errors in task progress
  • Loading branch information
iNecas committed Apr 21, 2015
2 parents 2a51547 + 96a62ea commit 719154c
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 719154c

Please sign in to comment.