Skip to content

Commit f2bd519

Browse files
authored
Merge pull request rails#40918 from ivgiuliani/ivgiuliani/better-warning-invisible-space
Include file path in invisible space warning
2 parents dbec643 + 66f8a2e commit f2bd519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/configuration_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read(content_path)
3333

3434
File.read(content_path).tap do |content|
3535
if content.include?("\u00A0")
36-
warn "File contains invisible non-breaking spaces, you may want to remove those"
36+
warn "#{content_path} contains invisible non-breaking spaces, you may want to remove those"
3737
end
3838
end
3939
end

0 commit comments

Comments
 (0)