0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-21 05:04:33 +01:00
gitea/vendor/gopkg.in/redis.v2/error.go
2016-11-04 08:43:11 +01:00

23 lines
369 B
Go

package redis
import (
"fmt"
)
// Redis nil reply.
var Nil = errorf("redis: nil")
// Redis transaction failed.
var TxFailedErr = errorf("redis: transaction failed")
type redisError struct {
s string
}
func errorf(s string, args ...interface{}) redisError {
return redisError{s: fmt.Sprintf(s, args...)}
}
func (err redisError) Error() string {
return err.s
}