We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115a9f4 commit 0c3ef01Copy full SHA for 0c3ef01
lib/transaction.ts
@@ -34,6 +34,9 @@ export function addTransactionSupport (redis) {
34
const promise = exec.call(pipeline)
35
return asCallback(promise.then(function (result) {
36
const execResult = result[result.length - 1]
37
+ if (typeof execResult === 'undefined') {
38
+ throw new Error('Pipeline cannot be used to send any commands when the `exec()` has been called on it.');
39
+ }
40
if (execResult[0]) {
41
execResult[0].previousErrors = []
42
for (let i = 0; i < result.length - 1; ++i) {
0 commit comments