code: function onError(err) {
      const ctx = err.client.$ctx;
      npm.events.error(ctx.options, err, {
          cn: npm.utils.getSafeConnection(ctx.cn),
          dc: ctx.dc
      });
  }
docs: this event only happens when the connection is lost physically, which cannot be tested automatically; removing from coverage: istanbul ignore next