mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
16 lines
270 B
Go
16 lines
270 B
Go
package errors
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
var (
|
|
ErrorRedisInvalidType = NewRedisError("invalid type")
|
|
ErrorRedisLocked = NewRedisError("locked")
|
|
)
|
|
|
|
func NewRedisError(msg string) (err error) {
|
|
return errors.New(fmt.Sprintf("%s: %s", errorPrefixRedis, msg))
|
|
}
|