Use contextjson

This commit is contained in:
世界
2023-12-01 20:15:11 +08:00
parent 7a0456b895
commit 2fb4d26f9f
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
}