aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 6256f8564..fe98e5af9 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -203,9 +203,9 @@ module SharedEnvExtension
def warn_about_non_apple_gcc(name)
begin
gcc_formula = gcc_version_formula(name)
- rescue FormulaUnavailableError
+ rescue FormulaUnavailableError => e
raise <<-EOS.undent
- Homebrew GCC requested, but formula #{name.delete(".-")} not found!
+ Homebrew GCC requested, but formula #{e.name} not found!
You may need to: brew tap homebrew/versions
EOS
end