diff --git a/lib/sprockets/rails/quiet_assets.rb b/lib/sprockets/rails/quiet_assets.rb index 62bd0926..ca554b2c 100644 --- a/lib/sprockets/rails/quiet_assets.rb +++ b/lib/sprockets/rails/quiet_assets.rb @@ -20,10 +20,14 @@ def call(env) private def raise_logger_silence_error - error = "You have enabled `config.assets.quiet`, but your `Rails.logger`\n" - error << "does not use the `LoggerSilence` module.\n\n" - error << "Please use a compatible logger such as `ActiveSupport::Logger`\n" - error << "to take advantage of quiet asset logging.\n\n" + error = <<~ERROR + You have enabled `config.assets.quiet`, but your `Rails.logger` + does not use the `LoggerSilence` module. + + Please use a compatible logger such as `ActiveSupport::Logger` + to take advantage of quiet asset logging. + + ERROR raise LoggerSilenceError, error end