mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 02:37:14 +00:00
Upgrade to new go errors and some minor fixes and improvements including easier debugging of invalid routes and e.t.c.
Former-commit-id: 5809157b952ccc61a67a9861470774b3a6fee024
This commit is contained in:
@@ -83,7 +83,7 @@ func (r *RedigoDriver) Get(key string) (interface{}, error) {
|
||||
return nil, err
|
||||
}
|
||||
if redisVal == nil {
|
||||
return nil, ErrKeyNotFound.Format(key)
|
||||
return nil, fmt.Errorf("%s: %w", key, ErrKeyNotFound)
|
||||
}
|
||||
return redisVal, nil
|
||||
}
|
||||
@@ -256,7 +256,7 @@ func (r *RedigoDriver) GetBytes(key string) ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
if redisVal == nil {
|
||||
return nil, ErrKeyNotFound.Format(key)
|
||||
return nil, fmt.Errorf("%s: %w", key, ErrKeyNotFound)
|
||||
}
|
||||
|
||||
return redis.Bytes(redisVal, err)
|
||||
|
||||
Reference in New Issue
Block a user