Skip to content

Commit

Permalink
Staging validations
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 27, 2024
1 parent 97a5d6c commit 4dacd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/schools/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def create
begin
@user_invite.create
redirect_to schools_users_path, notice: "#{@user_invite.email} has been added."
rescue StandardError
flash.notice = "An error occurred while adding #{@user_invite.email}"
rescue StandardError => e
flash.notice = "An error occurred while adding #{@user_invite.email} due to #{e}"
render :show, locals: { user_invite: @user_invite }
end
else
Expand Down

0 comments on commit 4dacd46

Please sign in to comment.