exceptions: tweak build flags error message.

This commit is contained in:
Mike McQuaid 2019-10-11 09:02:41 +01:00 committed by GitHub
parent c6cb20a768
commit 0e3ab6e6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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