Fix undefined method error following CannotInstallFormulaError

This commit is contained in:
Bo Anderson 2021-09-14 03:37:40 +01:00 committed by Mike McQuaid
parent bf7b043392
commit 9d5f4e8ed5
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 2 additions and 0 deletions

View File

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

View File

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