diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2010-01-19 22:35:09 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2010-01-19 22:35:26 -0800 |
commit | 1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b (patch) | |
tree | 57994f2048b69feb96ffa33ca6d084daec26b47c /activesupport/lib/active_support/dependencies.rb | |
parent | 5ebfa6242726bd186452640ed5704f2adc1a5007 (diff) | |
download | rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.tar.gz rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.tar.bz2 rails-1a50d2e66a80c910fe1e2203eb2c993e5dbc4e5b.zip |
Stop overriding LoadError.new to return a MissingSourceError (and sometimes nil!)
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index e858bcdc80..8ded9f8b2d 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -236,7 +236,7 @@ module ActiveSupport #:nodoc: rescue LoadError => load_error unless swallow_load_errors if file_name = load_error.message[/ -- (.*?)(\.rb)?$/, 1] - raise MissingSourceFile.new(message % file_name, load_error.path).copy_blame!(load_error) + raise LoadError.new(message % file_name).copy_blame!(load_error) end raise end |