Merge pull request #12054 from Bo98/upgrade-fix

Fix undefined method error following CannotInstallFormulaError
This commit is contained in:
Mike McQuaid 2021-09-14 11:02:04 +01:00 committed by GitHub
commit ab281b0553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,7 @@ module Homebrew
fi fi
rescue CannotInstallFormulaError => e rescue CannotInstallFormulaError => e
ofail e.message ofail e.message
nil
rescue UnsatisfiedRequirements, DownloadError, ChecksumMismatchError => e rescue UnsatisfiedRequirements, DownloadError, ChecksumMismatchError => e
ofail "#{f}: #{e}" ofail "#{f}: #{e}"
nil nil

View File

@ -73,6 +73,7 @@ module Homebrew
fi fi
rescue CannotInstallFormulaError => e rescue CannotInstallFormulaError => e
ofail e ofail e
nil
rescue UnsatisfiedRequirements, DownloadError => e rescue UnsatisfiedRequirements, DownloadError => e
ofail "#{formula}: #{e}" ofail "#{formula}: #{e}"
nil nil