Commit 6e7da81
committed
validate/validate_test: Better error messages for unexpected JSON Schema errors
Instead of raising messages like:
Error: Not equal:
expected: <nil>(<nil>)
actual:
*multierror.Error(*multierror.Error{Errors:[]error{(*errors.errorString)(0xc42037adc0)},
ErrorFormat:(multierror.ErrorFormatFunc)(nil)})
raise messages like:
* linux.rootfsPropagation: linux.rootfsPropagation must be one of
the following: "private", "shared", "slave", "unbindable"
Signed-off-by: W. Trevor King <wking@tremily.us>1 parent 4882fc1 commit 6e7da81
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments