diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-03 23:05:16 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-03 23:05:16 +0000 |
commit | 3b2e356cd2d168c40c60015ee059070767f1fd7e (patch) | |
tree | c976ef992cf09eee78cc4623aefa80dbf35d2808 /actionpack | |
parent | e4106a580ec5008f7a84be6f412e5d88d7a160cb (diff) | |
download | rails-3b2e356cd2d168c40c60015ee059070767f1fd7e.tar.gz rails-3b2e356cd2d168c40c60015ee059070767f1fd7e.tar.bz2 rails-3b2e356cd2d168c40c60015ee059070767f1fd7e.zip |
Added the original exception message to session recall errors (so you can see which class wasnt required)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/cgi_process.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index c9b47db755..156c41a098 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added the original exception message to session recall errors (so you can see which class wasnt required) + * Fixed that RAILS_ROOT might not be defined when AP was loaded, so do a late initialization of the ROUTE_FILE #761 [Scott Barron] * Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar] diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index c301b322e5..5900540b80 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -86,7 +86,7 @@ module ActionController #:nodoc: ActionController::SessionRestoreError, "Session contained objects where the class definition wasn't available. " + "Remember to require classes for all objects kept in the session. " + - "The session has been deleted." + "The session has been deleted. (Original exception: #{e.message} [#{e.class}])" ) end end |