lib/rails/command/behavior.rb in railties-6.0.2.2 vs lib/rails/command/behavior.rb in railties-6.0.3.rc1
- old
+ new
@@ -42,10 +42,10 @@
begin
require path
return
rescue LoadError => e
- raise unless e.message =~ /#{Regexp.escape(path)}$/
+ raise unless /#{Regexp.escape(path)}$/.match?(e.message)
rescue Exception => e
warn "[WARNING] Could not load #{command_type} #{path.inspect}. Error: #{e.message}.\n#{e.backtrace.join("\n")}"
end
end
end