lib/respectify.js
function errorWrap(err, param, sent) {
  if (err instanceof restify.RestError) {
    err.body.parameter = param
    err.body.received = sent
  }
  return err
}
function errorWrap(err, param, sent) {
  if (err instanceof restify.RestError) {
    err.body.parameter = param
    err.body.received = sent
  }
  return err
}
function errorWrap ( err , param , sent ) { if ( err instanceof restify . RestError ) { err . body . parameter = param err . body . received = sent } return err }
Add extra information to a restify error instance

@param {Error} restify RestError
@param {Object} parameter spec
@param {Any} value received
Add extra information to a restify error instance