panic on reads inside of a MULTI

This commit is contained in:
Jimmy Zelinskie 2013-08-13 16:36:10 -04:00
parent 33d1caf670
commit 3df97fea4d

View file

@ -12,7 +12,6 @@ package redis
import (
"encoding/json"
"errors"
"strings"
"time"
@ -128,7 +127,7 @@ func (tx *Tx) initiateRead() error {
return storage.ErrTxDone
}
if tx.multi == true {
return errors.New("Tried to read during MULTI")
panic("Tried to read during MULTI")
}
return nil
}