This commit is contained in:
parent
171524fb83
commit
c5c6765d67
@ -63,9 +63,9 @@ export class LdapPolicy implements NPolicy {
|
|||||||
out['accept'] = false;
|
out['accept'] = false;
|
||||||
out['msg'] = 'Only members can publish notes on this relay';
|
out['msg'] = 'Only members can publish notes on this relay';
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (e) {
|
||||||
out['accept'] = false;
|
out['accept'] = false;
|
||||||
out['msg'] = 'Auth service temporarily unavailable';
|
out['msg'] = `Auth service temporarily unavailable: ${e.message}`;
|
||||||
} finally {
|
} finally {
|
||||||
await client.unbind();
|
await client.unbind();
|
||||||
return ['OK', id, out['accept'], out['msg']];
|
return ['OK', id, out['accept'], out['msg']];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user