You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
369 B

  1. package redis
  2. import (
  3. "fmt"
  4. )
  5. // Redis nil reply.
  6. var Nil = errorf("redis: nil")
  7. // Redis transaction failed.
  8. var TxFailedErr = errorf("redis: transaction failed")
  9. type redisError struct {
  10. s string
  11. }
  12. func errorf(s string, args ...interface{}) redisError {
  13. return redisError{s: fmt.Sprintf(s, args...)}
  14. }
  15. func (err redisError) Error() string {
  16. return err.s
  17. }