how to Capture error in own Strategy
hey:
thanks for  your contribution
quesion:

Unable to capture the error
i am run koa-passport-example in local, the auth way use the passport-ldapauth,I think other ways, too
when i close the network and try login, the app was  crashed

how to  capture the the error ??
 
events.js:160 
      throw er; // Unhandled 'error' event
      ^
Error: getaddrinfo ENOTFOUND corp.xx.com corp.xx.com:389
    at errnoException (dns.js:28:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)