BigW Consortium Gitlab

Commit 49a9c2fb by Jacob Vosmaer

Print command output when a task failed

This helps you understand why the command failed.
parent 3883a5f9
......@@ -81,7 +81,7 @@ module Gitlab
def run_command!(command)
output, status = Gitlab::Popen.popen(command)
raise Gitlab::TaskFailedError unless status.zero?
raise Gitlab::TaskFailedError.new(output) unless status.zero?
output
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment