From 2506ef0d8110e56f8453f7d5a90aa9f7da9d6a33 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Mon, 11 Jun 2018 09:41:41 -1000 Subject: [PATCH] Missing space in error message Without this, the error prints like this: ``` DEPRECATION WARNING: The asset "application.js" is not present in the asset pipeline.Falling back to an asset that may be in the public folder. This behavior is deprecated and will be removed. To bypass the asset pipeline and preserve this behavior, use the `skip_pipeline: true` option. ``` --- lib/sprockets/rails/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sprockets/rails/helper.rb b/lib/sprockets/rails/helper.rb index 01f9f7e9..10b40f58 100644 --- a/lib/sprockets/rails/helper.rb +++ b/lib/sprockets/rails/helper.rb @@ -80,7 +80,7 @@ def compute_asset_path(path, options = {}) if asset_path = resolve_asset_path(path, debug) File.join(assets_prefix || "/", legacy_debug_path(asset_path, debug)) else - message = "The asset #{ path.inspect } is not present in the asset pipeline." + message = "The asset #{ path.inspect } is not present in the asset pipeline.\n" raise AssetNotFound, message unless unknown_asset_fallback if respond_to?(:public_compute_asset_path)