Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bbe997

Browse files
committedMar 24, 2015
Sprockets 3 just returns nil for unknown paths
1 parent b031393 commit 4bbe997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎lib/opal/sprockets/path_reader.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ def read path
2020
end
2121

2222
def expand path
23-
env.resolve(path)
23+
env.resolve(path) or
24+
# Sprockets 3 just returns nil for unknown paths
25+
raise ::Sprockets::FileNotFound, path.inspect
2426
end
2527

2628
def paths

0 commit comments

Comments
 (0)
Please sign in to comment.