mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 14:43:07 +02:00
simplified error messages
This commit is contained in:
@@ -48,7 +48,7 @@ func ValidateYaml(schema *jsonschema.Schema, data []byte) E.NestedError {
|
||||
|
||||
b := E.NewBuilder("yaml validation error")
|
||||
for _, e := range valErr.Causes {
|
||||
b.AddE(e)
|
||||
b.Addf(e.Message)
|
||||
}
|
||||
return b.Build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user