Browse files

revised the exception message "Expected #{file_path} to define #{qual…


Users need to know the ultimate problem here is that AS was
trying to autoload a constant and it failed.
  • Loading branch information...
1 parent 70f147d commit 5388fee718994adabfde20020652d03d67d97048 @fxn fxn committed Sep 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/dependencies.rb
@@ -487,7 +487,7 @@ def load_missing_constant(from_mod, const_name)
raise "Circular dependency detected while autoloading constant #{qualified_name}"
- raise LoadError, "Expected #{file_path} to define #{qualified_name}" unless from_mod.const_defined?(const_name, false)
+ raise LoadError, "Unable to autoload constant #{qualified_name}, expected #{file_path} to define it" unless from_mod.const_defined?(const_name, false)
return from_mod.const_get(const_name)
elsif mod = autoload_module!(from_mod, const_name, qualified_name, path_suffix)

0 comments on commit 5388fee

Please sign in to comment.