Skip to content
Snippets Groups Projects
Unverified Commit 0e3ab6e6 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

exceptions: tweak build flags error message.

parent c6cb20a7
No related branches found
No related tags found
No related merge requests found
......@@ -466,15 +466,17 @@ class BuildFlagsError < RuntimeError
require_text = "requires"
end
message = +<<~EOS
bottle_text = if bottled
<<~EOS
Alternatively, remove the #{flag_text} to attempt bottle installation.
EOS
end
message = <<~EOS
The following #{flag_text}:
#{flags.join(", ")}
#{require_text} building tools, but none are installed.
#{DevelopmentTools.installation_instructions}
EOS
message << <<~EOS if bottled
Alternatively, remove the #{flag_text} to attempt bottle installation.
#{DevelopmentTools.installation_instructions}#{bottle_text}
EOS
super message
......
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