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

@@ -48,7 +48,7 @@ func (r *Rule) UnmarshalJSON(bytes []byte) error {
}
err = UnmarshallExcluded(bytes, (*_Rule)(r), v)
if err != nil {
return E.Cause(err, "route rule")
return err
}
return nil
}