MCPcopy Index your code
hub / github.com/redis/node-redis / #decodeSimpleError

Method #decodeSimpleError

packages/client/lib/RESP/decoder.ts:647–652  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

645 }
646
647 #decodeSimpleError(chunk) {
648 const string = this.#decodeSimpleString(String, chunk);
649 return typeof string === 'function' ?
650 this.#continueDecodeSimpleError.bind(this, string) :
651 new SimpleError(string);
652 }
653
654 #continueDecodeSimpleError(stringCb, chunk) {
655 const string = stringCb(chunk);

Callers 2

#decodeTypeValueMethod · 0.95

Calls 1

#decodeSimpleStringMethod · 0.95

Tested by

no test coverage detected