Skip to content

Commit ccfba35

Browse files
fix(valueparser): Log correct value type
1 parent 9c1d017 commit ccfba35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

valueparser/try_unmarshal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TryUnmarshal[T ParsableType](value string, valueType reflect.Type) (T, yaer
3333
fmt.Sprintf(
3434
"try unmarshal: cannot convert value %v to type %s",
3535
value,
36-
typ,
36+
valueType,
3737
),
3838
)
3939
}
@@ -45,7 +45,7 @@ func TryUnmarshal[T ParsableType](value string, valueType reflect.Type) (T, yaer
4545
fmt.Sprintf(
4646
"try unmarshal: %v cannot be unmarshaled to type %s: %v",
4747
value,
48-
typ,
48+
valueType,
4949
err,
5050
),
5151
)

0 commit comments

Comments
 (0)