Use contextjson

This commit is contained in:
世界
2023-12-01 20:15:11 +08:00
parent c593d5ec1c
commit c7a13de0a6
13 changed files with 37 additions and 14 deletions

View File

@@ -114,7 +114,7 @@ func (h *Inbound) UnmarshalJSON(bytes []byte) error {
}
err = UnmarshallExcluded(bytes, (*_Inbound)(h), v)
if err != nil {
return E.Cause(err, "inbound options")
return err
}
return nil
}