Skip to content

Commit

Permalink
[build] add more information to bazel errors in tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 25, 2024
1 parent 1f01bfe commit eb38753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rake_tasks/bazel.rb
Expand Up @@ -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+)}
Expand Down

0 comments on commit eb38753

Please sign in to comment.