Skip to content

Commit 83399e7

Browse files
committed
validate/CheckRoot: fix error text
"This field" is not very descriptive. Replace with field name. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 8db8957 commit 83399e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate/validate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ func (v *Validator) CheckRoot() (errs error) {
179179
return
180180
} else if v.spec.Root == nil {
181181
errs = multierror.Append(errs,
182-
specerror.NewError(specerror.RootOnWindowsRequired, fmt.Errorf("on Windows, for Windows Server Containers, this field is REQUIRED"), rspec.Version))
182+
specerror.NewError(specerror.RootOnWindowsRequired, fmt.Errorf("on Windows, for Windows Server Containers, Root is REQUIRED"), rspec.Version))
183183
return
184184
}
185185
} else if v.platform != "windows" && v.spec.Root == nil {
186186
errs = multierror.Append(errs,
187-
specerror.NewError(specerror.RootOnNonWindowsRequired, fmt.Errorf("on all other platforms, this field is REQUIRED"), rspec.Version))
187+
specerror.NewError(specerror.RootOnNonWindowsRequired, fmt.Errorf("on all other platforms, Root is REQUIRED"), rspec.Version))
188188
return
189189
}
190190

0 commit comments

Comments
 (0)