improved error message

This commit is contained in:
pippellia-btc
2025-06-12 16:56:27 +02:00
parent 948f59affc
commit 3d71e908b5

View File

@@ -319,7 +319,7 @@ func (db RedisDB) counts(ctx context.Context, key func(graph.ID) string, nodes .
}
if _, err := pipe.Exec(ctx); err != nil {
return nil, fmt.Errorf("failed to count the elements of %d nodes: %w", len(nodes), err)
return nil, fmt.Errorf("failed to count the elements of %d %s of nodes: %w", len(nodes), key(""), err)
}
counts := make([]int, len(nodes))