@@ -78,31 +78,31 @@ var (
78
78
var ociErrors = map [SpecErrorCode ]errorTemplate {
79
79
// Bundle.md
80
80
// 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 },
83
83
84
84
// Config.md
85
85
// Specification Version
86
- SpecVersion : errorTemplate {Level : Must , Reference : specVersionRef },
86
+ SpecVersion : {Level : Must , Reference : specVersionRef },
87
87
// 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 },
90
90
// 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 },
96
96
97
97
// Config-Linux.md
98
98
// Default Filesystems
99
- DefaultFilesystems : errorTemplate {Level : Should , Reference : defaultFSRef },
99
+ DefaultFilesystems : {Level : Should , Reference : defaultFSRef },
100
100
101
101
// Runtime.md
102
102
// 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 },
106
106
}
107
107
108
108
// NewError creates an Error referencing a spec violation. The error
@@ -126,7 +126,7 @@ func NewError(code SpecErrorCode, msg string, version string) (err error) {
126
126
}
127
127
}
128
128
129
- // FindError finds an error from a source error (mulitple error) and
129
+ // FindError finds an error from a source error (multiple error) and
130
130
// returns the error code if founded.
131
131
// If the source error is nil or empty, return NonError.
132
132
// If the source error is not a multiple error, return NonRFCError.
0 commit comments