From 3b2e356cd2d168c40c60015ee059070767f1fd7e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 3 Mar 2005 23:05:16 +0000 Subject: 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 --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_controller/cgi_process.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3