Fix undefined method error following CannotInstallFormulaError

This commit is contained in:
Bo Anderson
2021-09-14 10:43:38 +01:00
committed by Mike McQuaid
parent bf7b043392
commit 9d5f4e8ed5
2 changed files with 2 additions and 0 deletions
+1
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
+1
View File
@@ -73,6 +73,7 @@ module Homebrew
fi
rescue CannotInstallFormulaError => e
ofail e
nil
rescue UnsatisfiedRequirements, DownloadError => e
ofail "#{formula}: #{e}"
nil