simplified error messages

This commit is contained in:
yusing
2024-10-19 14:25:28 +08:00
parent bd732dfa0a
commit 01ffe0d97c
7 changed files with 43 additions and 19 deletions

View File

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