Use BuildError#formula instead of args.

This commit is contained in:
Markus Reiter 2020-07-23 02:33:20 +02:00
parent 9176c62246
commit a895f398ed

View File

@ -150,7 +150,7 @@ rescue BuildError => e
Utils::Analytics.report_build_error(e)
e.dump
output_unsupported_error if Homebrew.args.HEAD? || e.formula.deprecated? || e.formula.disabled?
output_unsupported_error if e.formula.head? || e.formula.deprecated? || e.formula.disabled?
exit 1
rescue RuntimeError, SystemCallError => e