lib/parser.js
function parseError (parser) {
  var string = parseSimpleString(parser)
  if (string !== undefined) {
    if (parser.optionReturnBuffers === true) {
      string = string.toString()
    }
    return new ReplyError(string)
  }
}
function parseError (parser) {
  var string = parseSimpleString(parser)
  if (string !== undefined) {
    if (parser.optionReturnBuffers === true) {
      string = string.toString()
    }
    return new ReplyError(string)
  }
}
function parseError ( parser ) { var string = parseSimpleString ( parser ) if ( string !== undefined ) { if ( parser . optionReturnBuffers === true ) { string = string . toString ( ) } return new ReplyError ( string ) } }
Parse a '-' redis error response
@param {JavascriptRedisParser} parser
@returns {ReplyError}
Parse a - redis error response