Commit 49a9c2fb authored by Jacob Vosmaer's avatar 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