1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

This commit is contained in:
Solomon Hykes 2013-01-27 01:07:21 -08:00
parent fc19a00103
commit 55a7560436

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