Skip to content

Commit eb38753

Browse files
committed
[build] add more information to bazel errors in tasks
1 parent 1f01bfe commit eb38753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rake_tasks/bazel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def self.execute(kind, args, target, &block)
4343
end
4444
end
4545

46-
raise "#{cmd.join(' ')} failed with exit code: #{cmd_exit_code}" if cmd_exit_code != 0
46+
raise "#{cmd.join(' ')} failed with exit code: #{cmd_exit_code}\nOutput: #{cmd_out}" if cmd_exit_code != 0
4747

4848
block&.call(cmd_out)
4949
return unless cmd_out =~ %r{\s+(bazel-bin/\S+)}

0 commit comments

Comments
 (0)