Skip to content

Commit

Permalink
Missing space in error message
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
justin808 authored Jun 11, 2018
1 parent 857e781 commit 2506ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/rails/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2506ef0

Please sign in to comment.