aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-06-22 21:08:27 -0400
committerJack Nagel2015-06-22 21:08:27 -0400
commit5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5 (patch)
treeba0eecc2ff344f06d4f64c8af1884d71f45353d3 /Library
parent87e77350125602e6114e43ccc349f0287f8f5349 (diff)
downloadbrew-5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5.tar.bz2
Ask the exception for the formula name
Diffstat (limited to 'Library')
-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