diff --git a/contrib/nosql/redis/redis_group_script.go b/contrib/nosql/redis/redis_group_script.go index a074748dfa9..3f1a6ef77a7 100644 --- a/contrib/nosql/redis/redis_group_script.go +++ b/contrib/nosql/redis/redis_group_script.go @@ -76,6 +76,9 @@ func (r GroupScript) ScriptExists(ctx context.Context, sha1 string, sha1s ...str s = append(s, "Exists") s = append(s, sha1Array...) result, err := r.Operation.Do(ctx, "Script", s...) + if err != nil { + return nil, err + } var ( m = make(map[string]bool) resultArray = result.Vars()