Skip to content

Commit dcbcdf2

Browse files
committed
merge branch 'pr-1353'
Closes opencontainers#1353 LGTMs: @hqhq @cyphar
2 parents c50d024 + f82a38e commit dcbcdf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func execProcess(context *cli.Context) (int, error) {
115115
return -1, err
116116
}
117117
if status == libcontainer.Stopped {
118-
return -1, fmt.Errorf("cannot exec a container that has run and stopped")
118+
return -1, fmt.Errorf("cannot exec a container that has stopped")
119119
}
120120
path := context.String("process")
121121
if path == "" && len(context.Args()) == 1 {

start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ your host.`,
4747
hasError = true
4848
}
4949
case libcontainer.Stopped:
50-
fmt.Fprintln(os.Stderr, "cannot start a container that has run and stopped")
50+
fmt.Fprintln(os.Stderr, "cannot start a container that has stopped")
5151
hasError = true
5252
case libcontainer.Running:
5353
fmt.Fprintln(os.Stderr, "cannot start an already running container")

0 commit comments

Comments
 (0)