Improve matching on bind errors

This commit is contained in:
Mark Felder 2024-09-17 13:54:57 -04:00
parent ea63533cf2
commit 2b482e34eb

View file

@ -177,9 +177,9 @@ defmodule Pleroma.LDAP do
:eldap.close(handle) :eldap.close(handle)
:needs_reconnect :needs_reconnect
error -> {:error, error} = e ->
Logger.error("Could not bind LDAP user #{name}: #{inspect(error)}") Logger.error("Could not bind LDAP user #{name}: #{inspect(error)}")
{:error, {:ldap_bind_error, error}} e
end end
end end