Skip to content

Commit d57b6b3

Browse files
committed
fix: improved msg during byte slice
1 parent e36402a commit d57b6b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

interpolate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ func encodeValue(buf []byte, arg interface{}, flavor Flavor) ([]byte, error) {
697697
}
698698

699699
if elem := primative.Type().Elem(); elem.Kind() != reflect.Uint8 {
700-
return nil, fmt.Errorf("%w: %s", ErrInterpolateUnsupportedArgs, elem.Name())
700+
return nil, fmt.Errorf("%w: only byte slices are supported", ErrInterpolateUnsupportedArgs)
701701
}
702702

703703
var data []byte

0 commit comments

Comments
 (0)