Skip to content

Commit 2506ef0

Browse files
authored
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. ```
1 parent 857e781 commit 2506ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/rails/helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def compute_asset_path(path, options = {})
8080
if asset_path = resolve_asset_path(path, debug)
8181
File.join(assets_prefix || "/", legacy_debug_path(asset_path, debug))
8282
else
83-
message = "The asset #{ path.inspect } is not present in the asset pipeline."
83+
message = "The asset #{ path.inspect } is not present in the asset pipeline.\n"
8484
raise AssetNotFound, message unless unknown_asset_fallback
8585

8686
if respond_to?(:public_compute_asset_path)

0 commit comments

Comments
 (0)