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

Fixed wording of ghost-related messages

This commit is contained in:
Solomon Hykes 2013-04-12 10:39:08 -07:00
parent 3527291b47
commit b1fbebb4a3
2 changed files with 3 additions and 3 deletions

View file

@ -577,7 +577,7 @@ func (container *Container) Kill() error {
return nil
}
if container.State.Ghost {
return fmt.Errorf("Impossible to kill ghost containers")
return fmt.Errorf("Can't kill ghost container")
}
return container.kill()
}
@ -589,7 +589,7 @@ func (container *Container) Stop() error {
return nil
}
if container.State.Ghost {
return fmt.Errorf("Impossible to stop ghost containers")
return fmt.Errorf("Can't stop ghot container")
}
// 1. Send a SIGTERM

View file

@ -19,7 +19,7 @@ type State struct {
func (s *State) String() string {
if s.Running {
if s.Ghost {
return fmt.Sprintf("Running ghost")
return fmt.Sprintf("Ghost")
}
return fmt.Sprintf("Up %s", HumanDuration(time.Now().Sub(s.StartedAt)))
}