Merge pull request #1087 from williammartin/master

Fix typo when container does not exist
This commit is contained in:
Qiang Huang 2016-09-29 09:19:45 +08:00 committed by GitHub
commit 3597b7b743
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ func (l *LinuxFactory) loadState(root, id string) (*State, error) {
f, err := os.Open(filepath.Join(root, stateFilename))
if err != nil {
if os.IsNotExist(err) {
return nil, newGenericError(fmt.Errorf("container %q does not exists", id), ContainerNotExists)
return nil, newGenericError(fmt.Errorf("container %q does not exist", id), ContainerNotExists)
}
return nil, newGenericError(err, SystemError)
}