Skip to content

Commit 49321a2

Browse files
Update pkg/ottl/ottlfuncs/func_scale.go
Co-authored-by: Evan Bradley <[email protected]>
1 parent 75e24b1 commit 49321a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ottl/ottlfuncs/func_scale.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Scale[K any](getter ottl.Getter[K], multiplier float64) (ottl.ExprFunc[K],
6767
case pmetric.ExponentialHistogramDataPointSlice:
6868
return nil, errors.New("exponential histograms are not supported by the 'Scale' function")
6969
default:
70-
return nil, errors.New("unsupported data type")
70+
return nil, fmt.Errorf("unsupported data type: '%T'", val)
7171
}
7272
}, nil
7373
}

0 commit comments

Comments
 (0)