src/record/record-request.js
function sendError (
  event, message, recordName, socketWrapper, onError, options, context, metaData
) {
  options.logger.error(event, message, metaData)
  if (socketWrapper) {
    socketWrapper.sendError(C.TOPIC.RECORD, event, message)
  }
  if (onError) {
    onError.call(context, event, message, recordName, socketWrapper)
  }
}
function sendError (
  event, message, recordName, socketWrapper, onError, options, context, metaData
) {
  options.logger.error(event, message, metaData)
  if (socketWrapper) {
    socketWrapper.sendError(C.TOPIC.RECORD, event, message)
  }
  if (onError) {
    onError.call(context, event, message, recordName, socketWrapper)
  }
}
function sendError ( event , message , recordName , socketWrapper , onError , options , context , metaData ) { options . logger . error ( event , message , metaData ) if ( socketWrapper ) { socketWrapper . sendError ( C . TOPIC . RECORD , event , message ) } if ( onError ) { onError . call ( context , event , message , recordName , socketWrapper ) } }
Sends an error to the socketWrapper that requested the
record
Sends an error to the socketWrapper that requested the record