function errorHandler (app, err) {
  delete app.connection
  // log and adjust err message
  const msg = `"app.connection" unexpectedly errored: ${err.message}`
  debug(msg, err)
  err.message = msg
  // throw the error
  throw err
}
function errorHandler (app, err) {
  delete app.connection
  
  const msg = `"app.connection" unexpectedly errored: ${err.message}`
  debug(msg, err)
  err.message = msg
  
  throw err
}
function errorHandler ( app , err ) { delete app . connection // log and adjust err message const msg = ` ${ err . message } ` debug ( msg , err ) err . message = msg // throw the error throw err }
connection error handler
connection error handler