Skip to content

Commit 01c2b12

Browse files
committed
text/template: fix error info
1 parent 35a7103 commit 01c2b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/templates/funcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ func toBigFloat(v Number) (*big.Float, error) {
17731773
case reflect.Float32, reflect.Float64:
17741774
return new(big.Float).SetFloat64(v.Float()), nil
17751775
default:
1776-
return nil, fmt.Errorf("unsupported type for numeric operation: %s", v.Type())
1776+
return nil, fmt.Errorf("unsupported type for numeric operation: %s (%s)", v, v.Kind())
17771777
}
17781778
}
17791779

0 commit comments

Comments
 (0)