Skip to content

Commit 534deff

Browse files
author
Ruben Bridgewater
committed
Fix error regression to contain buffers instead of strings
1 parent 5bc1708 commit 534deff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/parser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ function parseBulkString (parser) {
132132
function parseError (parser) {
133133
var string = parseSimpleStringViaOffset(parser)
134134
if (string !== undefined) {
135+
if (parser.optionReturnBuffers === true) {
136+
string = string.toString()
137+
}
135138
return new ReplyError(string)
136139
}
137140
}

0 commit comments

Comments
 (0)