From 61a9c71bdcece0a86ef2abf968c08ae98435c1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 20 May 2021 11:40:36 +0200 Subject: [PATCH] remove the extra error handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .../catalog-backend/src/ingestion/processors/ldap/client.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/catalog-backend/src/ingestion/processors/ldap/client.ts b/plugins/catalog-backend/src/ingestion/processors/ldap/client.ts index 5ac71f4b50..0557f21003 100644 --- a/plugins/catalog-backend/src/ingestion/processors/ldap/client.ts +++ b/plugins/catalog-backend/src/ingestion/processors/ldap/client.ts @@ -75,10 +75,6 @@ export class LdapClient { return await new Promise((resolve, reject) => { const output: SearchEntry[] = []; - this.client.on('error', (err: ldap.Error) => { - reject(new Error(errorString(err))); - }); - this.client.search(dn, options, (err, res) => { if (err) { reject(new Error(errorString(err)));