소스 검색

Merge pull request #21841 from WeiZhang555/error-typo

Fix typo
Vincent Demeester 9 년 전
부모
커밋
d7a04c7416
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      libcontainerd/client_linux.go
  2. 1 1
      libcontainerd/client_liverestore_linux.go

+ 1 - 1
libcontainerd/client_linux.go

@@ -138,7 +138,7 @@ func (clnt *client) Create(containerID string, spec Spec, options ...CreateOptio
 			ctr.restartManager.Cancel()
 			ctr.clean()
 		} else {
-			return fmt.Errorf("Container %s is aleady active", containerID)
+			return fmt.Errorf("Container %s is already active", containerID)
 		}
 	}
 

+ 1 - 1
libcontainerd/client_liverestore_linux.go

@@ -17,7 +17,7 @@ func (clnt *client) restore(cont *containerd.Container, options ...CreateOption)
 
 	containerID := cont.Id
 	if _, err := clnt.getContainer(containerID); err == nil {
-		return fmt.Errorf("container %s is aleady active", containerID)
+		return fmt.Errorf("container %s is already active", containerID)
 	}
 
 	defer func() {