From 9d5f4e8ed5b7826d3f8bc5baf3a66d64db22c101 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 14 Sep 2021 03:37:40 +0100 Subject: [PATCH] Fix undefined method error following CannotInstallFormulaError --- Library/Homebrew/install.rb | 1 + Library/Homebrew/upgrade.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index a75ef25832..4b4dea724b 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -299,6 +299,7 @@ module Homebrew fi rescue CannotInstallFormulaError => e ofail e.message + nil rescue UnsatisfiedRequirements, DownloadError, ChecksumMismatchError => e ofail "#{f}: #{e}" nil diff --git a/Library/Homebrew/upgrade.rb b/Library/Homebrew/upgrade.rb index 1d594e2df5..a8073ff57f 100644 --- a/Library/Homebrew/upgrade.rb +++ b/Library/Homebrew/upgrade.rb @@ -73,6 +73,7 @@ module Homebrew fi rescue CannotInstallFormulaError => e ofail e + nil rescue UnsatisfiedRequirements, DownloadError => e ofail "#{formula}: #{e}" nil