Commit 0109d80f957845cda19d554fadda540650324a79
Committed by
Daniela Feitosa
1 parent
52b357dc
Exists in
master
and in
28 other branches
Logging errors about profile editor
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/profile_editor_controller.rb
@@ -22,11 +22,12 @@ class ProfileEditorController < MyProfileController | @@ -22,11 +22,12 @@ class ProfileEditorController < MyProfileController | ||
22 | end | 22 | end |
23 | end | 23 | end |
24 | end | 24 | end |
25 | - rescue | 25 | + rescue Exception => ex |
26 | if profile.identifier.blank? | 26 | if profile.identifier.blank? |
27 | profile.identifier = params[:profile] | 27 | profile.identifier = params[:profile] |
28 | end | 28 | end |
29 | session[:notice] = _('Cannot update profile') | 29 | session[:notice] = _('Cannot update profile') |
30 | + logger.error ex.to_s | ||
30 | end | 31 | end |
31 | end | 32 | end |
32 | end | 33 | end |