actual fix for #37285

This commit is contained in:
Xavier Noria 2019-09-25 00:27:18 +02:00
parent 149da8815c
commit ac193d0cc3
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace :zeitwerk do
eager_load[]
rescue NameError => e
if e.message =~ /expected file .*? to define constant \S+/
abort $&.sub(/\A#{Regexp.escape(Rails.root.to_s)}./, "")
abort $&.sub(/expected file #{Regexp.escape(Rails.root.to_s)}./, "expected file ")
else
raise
end