Skip to content

Commit ef54c64

Browse files
committed
Update users_controller.rb
1 parent d332ade commit ef54c64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/admin/users_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def update_email
9191
result = UpdateUserEmail.new(@user, new_email)
9292
if result.call
9393
flash[:notice] = I18n.t('errors.messages.success_updating_user_email_in_auth0')
94-
elsif result.failure?
95-
flash[:alert] = I18n.t('errors.messages.error_updating_user_email_in_auth0')
94+
elsif result.errors
95+
flash[:alert] = I18n.t('errors.messages.error_updating_user_email_in_auth0') + ": #{result.errors.full_messages.join(', ')}"
9696
end
9797
redirect_to admin_user_path(@user)
9898
end

0 commit comments

Comments
 (0)