From 5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5 Mon Sep 17 00:00:00 2001 From: Jack Nagel <jacknagel@gmail.com> Date: Mon, 22 Jun 2015 21:08:27 -0400 Subject: [PATCH] Ask the exception for the formula name --- Library/Homebrew/extend/ENV/shared.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 6256f85642..fe98e5af97 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 -- GitLab