dev-cmd/test: output stacktrace to stderr

This commit is contained in:
Bo Anderson 2021-02-26 05:09:14 +00:00
parent 6cd1e5e384
commit d911596af9
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -105,7 +105,7 @@ module Homebrew
rescue Exception => e # rubocop:disable Lint/RescueException rescue Exception => e # rubocop:disable Lint/RescueException
retry if retry_test?(f, args: args) retry if retry_test?(f, args: args)
ofail "#{f.full_name}: failed" ofail "#{f.full_name}: failed"
puts e, e.backtrace $stderr.puts e, e.backtrace
ensure ensure
ENV.replace(env) ENV.replace(env)
end end