Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 88f7693

Browse files
arlmjwhitley
authored andcommitted
Make explicit warnings when an asset is not found
1 parent ee09c09 commit 88f7693

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/requirejs/rails/builder.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def build
1616
end
1717

1818
def digest_for(path)
19-
Rails.application.assets.file_digest(path).hexdigest
19+
if !Rails.application.assets.file_digest(path).nil?
20+
Rails.application.assets.file_digest(path).hexdigest
21+
else
22+
puts "Asset digest not found:", path
23+
end
2024
end
2125

2226
def generate_rjs_driver
@@ -26,4 +30,4 @@ def generate_rjs_driver
2630
end
2731
end
2832
end
29-
end
33+
end

0 commit comments

Comments
 (0)