1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add ErrTxFailed. Small tweaks.

This commit is contained in:
Vladimir Mihailenco
2013-09-29 12:41:04 +03:00
parent 4c504ab528
commit 39c42d4389
7 changed files with 52 additions and 28 deletions

View File

@ -19,6 +19,12 @@ type Cmder interface {
Err() error
}
func setCmdsErr(cmds []Cmder, e error) {
for _, cmd := range cmds {
cmd.setErr(e)
}
}
//------------------------------------------------------------------------------
type baseCmd struct {