Skip to content

Commit ad70117

Browse files
update err message
Signed-off-by: Saumya Shah <[email protected]>
1 parent 341a961 commit ad70117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

execution/aggregate/khashaggregate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func NewKHashAggregate(
7070
return false // limitk doesnt require any sort logic
7171
}
7272
} else {
73-
return nil, errors.New("Unsupported aggregate expression")
73+
return nil, errors.Newf("Unsupported aggregate expression: %v", aggregation)
7474
}
7575
// Grouping labels need to be sorted in order for metric hashing to work.
7676
// https://github.com/prometheus/prometheus/blob/8ed39fdab1ead382a354e45ded999eb3610f8d5f/model/labels/labels.go#L162-L181

0 commit comments

Comments
 (0)