Use here document for failure message
@@ -325,9 +325,11 @@ module RMagick
end
unless `pkg-config --libs MagickCore`[/\bl\s*(MagickCore|Magick)6?\b/]
- exit_failure "Can't install RMagick #{RMAGICK_VERS}. " \
- "Can't find the ImageMagick library or one of the dependent libraries. " \
- "Check the mkmf.log file for more detailed information.\n"
+ exit_failure <<~END_FAILURE
+ Can't install RMagick #{RMAGICK_VERS}.
+ Can't find the ImageMagick library or one of the dependent libraries.
+ Check the mkmf.log file for more detailed information.
+ END_FAILURE
end
end
