Skip to content
Snippets Groups Projects
Commit 5e7edbbd authored by Jack Nagel's avatar Jack Nagel
Browse files

Ask the exception for the formula name

parent 87e77350
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment