Skip to content

Commit

Permalink
On Build failure output the whole error. (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik authored and askreet committed Sep 19, 2016
1 parent 41f48f7 commit 1f296b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/moonshot/build_mechanism/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def run_script(step, env: {}) # rubocop:disable AbcSize
end
unless result.exitstatus == 0
ilog.error "Build script failed with exit status #{result.exitstatus}!"
ilog.error 'Last 10 lines of output follows:'
output.pop(10).each { |l| ilog.error l }

ilog.error output.join("\n")
step.failure "Build script #{@script} failed with exit status #{result.exitstatus}!"
end
end
Expand Down

0 comments on commit 1f296b3

Please sign in to comment.