diff --git a/graphql/error.go b/graphql/error.go index ca1e98f2a6..f816bef6b8 100644 --- a/graphql/error.go +++ b/graphql/error.go @@ -26,7 +26,7 @@ func ErrorOnPath(ctx context.Context, err error) error { if gqlErr.Path == nil { gqlErr.Path = GetPath(ctx) } - // Return the original error to avoid closed any attached annotation + // Return the original error to avoid losing any attached annotation return err } return gqlerror.WrapPath(GetPath(ctx), err)