Print command output when a task failed

This helps you understand why the command failed.
This commit is contained in:
Jacob Vosmaer 2017-03-14 17:48:37 +01:00
parent 3883a5f906
commit 49a9c2fbef
1 changed files with 1 additions and 1 deletions

View File

@ -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