Print command output when a task failed
This helps you understand why the command failed.
This commit is contained in:
parent
3883a5f906
commit
49a9c2fbef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue