From c5c6765d67b0ebb3edde460d0d2c611a831a5aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 21 May 2025 16:29:22 +0400 Subject: [PATCH] Log LDAP exceptions --- extras/strfry/ldap-policy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/strfry/ldap-policy.ts b/extras/strfry/ldap-policy.ts index 84f3ca8..a8f5646 100644 --- a/extras/strfry/ldap-policy.ts +++ b/extras/strfry/ldap-policy.ts @@ -63,9 +63,9 @@ export class LdapPolicy implements NPolicy { out['accept'] = false; out['msg'] = 'Only members can publish notes on this relay'; } - } catch (ex) { + } catch (e) { out['accept'] = false; - out['msg'] = 'Auth service temporarily unavailable'; + out['msg'] = `Auth service temporarily unavailable: ${e.message}`; } finally { await client.unbind(); return ['OK', id, out['accept'], out['msg']];