We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4314e4b commit 837211dCopy full SHA for 837211d
internal/types/duration.go
@@ -48,7 +48,7 @@ func (d *TimeDuration) UnmarshalJSON(data []byte) error {
48
}
49
d.Duration = dur
50
default:
51
- panic("unknown type")
+ return fmt.Errorf("unknown type: %T", v)
52
53
return nil
54
0 commit comments