From d9904ecd30ac245f99832710f7156a25f35713ce Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Thu, 11 Aug 2011 14:50:43 -0700 Subject: [PATCH] InvitationsController update has an error, and our non-specific error catching is messing up knowing what our problems are --- app/controllers/invitations_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index 412dd7fd1..3296a98a2 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -55,6 +55,7 @@ class InvitationsController < Devise::InvitationsController user.accept_invitation!(params[:user]) user.seed_aspects rescue Exception => e #What exception is this trying to rescue? If it is ActiveRecord::NotFound, we should say so. + raise e unless e.respond_to?(:record) user = nil record = e.record record.errors.delete(:person)