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

@@ -124,7 +124,7 @@ func (h *Outbound) UnmarshalJSON(bytes []byte) error {
}
err = UnmarshallExcluded(bytes, (*_Outbound)(h), v)
if err != nil {
return E.Cause(err, "outbound options")
return err
}
return nil
}