瀏覽代碼

Fixed wording of ghost-related messages

Solomon Hykes 12 年之前
父節點
當前提交
b1fbebb4a3
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      container.go
  2. 1 1
      state.go

+ 2 - 2
container.go

@@ -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

+ 1 - 1
state.go

@@ -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)))
 	}