Commit 16a32aa0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'issue-imporve-ldap-group-link-error-msg' into 'master'

Issue imporve ldap group link error msg

I've improved the flash message with the exact error.

See merge request !168
parents 746643e1 efafbd17
...@@ -16,7 +16,7 @@ class Groups::LdapGroupLinksController < ApplicationController ...@@ -16,7 +16,7 @@ class Groups::LdapGroupLinksController < ApplicationController
redirect_to :back, notice: 'New LDAP link saved' redirect_to :back, notice: 'New LDAP link saved'
end end
else else
redirect_to :back, alert: 'Could not create new LDAP link' redirect_to :back, alert: "Could not create new LDAP link: #{ldap_group_link.error.full_messages * ', '}"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment