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

@@ -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
}