@@ -78,31 +78,31 @@ var (
7878var ociErrors = map [SpecErrorCode ]errorTemplate {
7979 // Bundle.md
8080 // Container Format
81- ConfigFileExistence : errorTemplate {Level : Must , Reference : containerFormatRef },
82- ArtifactsInSingleDir : errorTemplate {Level : Must , Reference : containerFormatRef },
81+ ConfigFileExistence : {Level : Must , Reference : containerFormatRef },
82+ ArtifactsInSingleDir : {Level : Must , Reference : containerFormatRef },
8383
8484 // Config.md
8585 // Specification Version
86- SpecVersion : errorTemplate {Level : Must , Reference : specVersionRef },
86+ SpecVersion : {Level : Must , Reference : specVersionRef },
8787 // Root
88- RootOnNonHyperV : errorTemplate {Level : Required , Reference : rootRef },
89- RootOnHyperV : errorTemplate {Level : Must , Reference : rootRef },
88+ RootOnNonHyperV : {Level : Required , Reference : rootRef },
89+ RootOnHyperV : {Level : Must , Reference : rootRef },
9090 // TODO: add tests for 'PathFormatOnWindows'
91- PathFormatOnWindows : errorTemplate {Level : Must , Reference : rootRef },
92- PathName : errorTemplate {Level : Should , Reference : rootRef },
93- PathExistence : errorTemplate {Level : Must , Reference : rootRef },
94- ReadonlyFilesystem : errorTemplate {Level : Must , Reference : rootRef },
95- ReadonlyOnWindows : errorTemplate {Level : Must , Reference : rootRef },
91+ PathFormatOnWindows : {Level : Must , Reference : rootRef },
92+ PathName : {Level : Should , Reference : rootRef },
93+ PathExistence : {Level : Must , Reference : rootRef },
94+ ReadonlyFilesystem : {Level : Must , Reference : rootRef },
95+ ReadonlyOnWindows : {Level : Must , Reference : rootRef },
9696
9797 // Config-Linux.md
9898 // Default Filesystems
99- DefaultFilesystems : errorTemplate {Level : Should , Reference : defaultFSRef },
99+ DefaultFilesystems : {Level : Should , Reference : defaultFSRef },
100100
101101 // Runtime.md
102102 // Create
103- CreateWithID : errorTemplate {Level : Must , Reference : runtimeCreateRef },
104- CreateWithUniqueID : errorTemplate {Level : Must , Reference : runtimeCreateRef },
105- CreateNewContainer : errorTemplate {Level : Must , Reference : runtimeCreateRef },
103+ CreateWithID : {Level : Must , Reference : runtimeCreateRef },
104+ CreateWithUniqueID : {Level : Must , Reference : runtimeCreateRef },
105+ CreateNewContainer : {Level : Must , Reference : runtimeCreateRef },
106106}
107107
108108// NewError creates an Error referencing a spec violation. The error
@@ -126,7 +126,7 @@ func NewError(code SpecErrorCode, msg string, version string) (err error) {
126126 }
127127}
128128
129- // FindError finds an error from a source error (mulitple error) and
129+ // FindError finds an error from a source error (multiple error) and
130130// returns the error code if founded.
131131// If the source error is nil or empty, return NonError.
132132// If the source error is not a multiple error, return NonRFCError.
0 commit comments