1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Fixed bug which caused 'docker stop' to crash when specifying a non-existing container.

Upstream-commit: 55a7560436d380405c807b187e67a2cd3eaf5e51
Component: engine
This commit is contained in:
Solomon Hykes
2013-01-27 01:07:21 -08:00
parent cc23af2ae6
commit ae634b26df

View File

@@ -64,7 +64,7 @@ func (srv *Server) CmdStop(stdin io.ReadCloser, stdout io.Writer, args ...string
}
fmt.Fprintln(stdout, container.Id)
} else {
return errors.New("No such container: " + container.Id)
return errors.New("No such container: " + name)
}
}
return nil