Browse code

Typo s/contained/container

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2015/11/09 11:29:34
Showing 2 changed files
... ...
@@ -167,7 +167,7 @@ func (m *containerMonitor) Start() error {
167 167
 		if exitStatus, err = m.supervisor.Run(m.container, pipes, m.callback); err != nil {
168 168
 			// if we receive an internal error from the initial start of a container then lets
169 169
 			// return it instead of entering the restart loop
170
-			// set to 127 for contained cmd not found/does not exist)
170
+			// set to 127 for container cmd not found/does not exist)
171 171
 			if strings.Contains(err.Error(), "executable file not found") ||
172 172
 				strings.Contains(err.Error(), "no such file or directory") ||
173 173
 				strings.Contains(err.Error(), "system cannot find the file specified") {
... ...
@@ -177,7 +177,7 @@ func (m *containerMonitor) Start() error {
177 177
 					return derr.ErrorCodeCmdNotFound
178 178
 				}
179 179
 			}
180
-			// set to 126 for contained cmd can't be invoked errors
180
+			// set to 126 for container cmd can't be invoked errors
181 181
 			if strings.Contains(err.Error(), syscall.EACCES.Error()) {
182 182
 				if m.container.RestartCount == 0 {
183 183
 					m.container.ExitCode = 126
... ...
@@ -922,25 +922,25 @@ var (
922 922
 		HTTPStatusCode: http.StatusInternalServerError,
923 923
 	})
924 924
 
925
-	// ErrorCodeCmdNotFound is generated when contained cmd can't start,
926
-	// contained command not found error, exit code 127
925
+	// ErrorCodeCmdNotFound is generated when container cmd can't start,
926
+	// container command not found error, exit code 127
927 927
 	ErrorCodeCmdNotFound = errcode.Register(errGroup, errcode.ErrorDescriptor{
928 928
 		Value:          "CMDNOTFOUND",
929
-		Message:        "Contained command not found or does not exist.",
929
+		Message:        "Container command not found or does not exist.",
930 930
 		Description:    "Command could not be found, command does not exist",
931 931
 		HTTPStatusCode: http.StatusInternalServerError,
932 932
 	})
933 933
 
934
-	// ErrorCodeCmdCouldNotBeInvoked is generated when contained cmd can't start,
935
-	// contained command permission denied error, exit code 126
934
+	// ErrorCodeCmdCouldNotBeInvoked is generated when container cmd can't start,
935
+	// container command permission denied error, exit code 126
936 936
 	ErrorCodeCmdCouldNotBeInvoked = errcode.Register(errGroup, errcode.ErrorDescriptor{
937 937
 		Value:          "CMDCOULDNOTBEINVOKED",
938
-		Message:        "Contained command could not be invoked.",
938
+		Message:        "Container command could not be invoked.",
939 939
 		Description:    "Permission denied, cannot invoke command",
940 940
 		HTTPStatusCode: http.StatusInternalServerError,
941 941
 	})
942 942
 
943
-	// ErrorCodeCantStart is generated when contained cmd can't start,
943
+	// ErrorCodeCantStart is generated when container cmd can't start,
944 944
 	// for any reason other than above 2 errors
945 945
 	ErrorCodeCantStart = errcode.Register(errGroup, errcode.ErrorDescriptor{
946 946
 		Value:          "CANTSTART",