When the server details you are connecting to are not correct, say, hostname or port etc are not valid, it manifests as a 'connect ECONNREFUSED' error and terminates the running process. For now, I am using process.on('uncaughtException', function (err) {} to catch this. With just the ldapjs library, seems like you can use the error event to catch this but how to best deal with this using the promised-ldap library?
When the server details you are connecting to are not correct, say, hostname or port etc are not valid, it manifests as a 'connect ECONNREFUSED' error and terminates the running process. For now, I am using process.on('uncaughtException', function (err) {} to catch this. With just the ldapjs library, seems like you can use the error event to catch this but how to best deal with this using the promised-ldap library?