Skip to content

Commit 857e781

Browse files
authored
Merge pull request #414 from rails/schneems/more-error-stuff
Schneems/more error stuff
2 parents 5847306 + 3c7ff8a commit 857e781

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ module Sprockets
77
module Rails
88
module Helper
99
class AssetNotFound < StandardError; end
10+
class AssetNotPrecompiled < StandardError; end
1011

11-
class AssetNotPrecompiled < StandardError
12+
class AssetNotPrecompiledError < AssetNotPrecompiled
1213
include Sprockets::Rails::Utils
1314
def initialize(source)
1415
msg =
1516
if using_sprockets4?
1617
"Asset `#{ source }` was not declared to be precompiled in production.\n" +
1718
"Declare links to your assets in `app/assets/config/manifest.js`.\n\n" +
18-
" //= link #{ source }\n" +
19+
" //= link #{ source }\n\n" +
1920
"and restart your server"
2021
else
2122
"Asset was not declared to be precompiled in production.\n" +

0 commit comments

Comments
 (0)