diff --git a/rake_tasks/bazel.rb b/rake_tasks/bazel.rb index 3c0edd5e358b4..cdd9148764c42 100644 --- a/rake_tasks/bazel.rb +++ b/rake_tasks/bazel.rb @@ -43,7 +43,7 @@ def self.execute(kind, args, target, &block) end end - raise "#{cmd.join(' ')} failed with exit code: #{cmd_exit_code}" if cmd_exit_code != 0 + raise "#{cmd.join(' ')} failed with exit code: #{cmd_exit_code}\nOutput: #{cmd_out}" if cmd_exit_code != 0 block&.call(cmd_out) return unless cmd_out =~ %r{\s+(bazel-bin/\S+)}