feat: optimize code (#96)

optimize code and fix testcase
This commit is contained in:
naison
2023-11-23 12:35:34 +08:00
committed by GitHub
parent 0e0885afd5
commit 1a9593f140
23 changed files with 101 additions and 105 deletions

View File

@@ -398,7 +398,7 @@ func DoDev(ctx context.Context, devOption *Options, conf *util.SshConfig, flags
return err
}
if inspect.State == nil {
return fmt.Errorf("can not get container status, please make contianer name is valid")
return fmt.Errorf("can not get container status, please make container name is valid")
}
if !inspect.State.Running {
return fmt.Errorf("container %s status is %s, expect is running, please make sure your outer docker name is correct", mode.ConnectedContainer(), inspect.State.Status)