Skip to content

Commit 66f8a2e

Browse files
committed
Include file path in invisible space warning
While the warning is useful in itself, it doesn't tell you what file is specifically causing the issue which can make resolving it harder than it should be. As we've got the path already, we can simply include the location of the problematic file in the warning message.
1 parent e0fb817 commit 66f8a2e

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)