mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
fix nits in stderr log
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
@@ -64,7 +64,7 @@ status of "ubuntu01" as "stopped" the following will delete resources held for
|
|||||||
if err := os.RemoveAll(path); err != nil {
|
if err := os.RemoveAll(path); err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "remove %s: %v\n", path, err)
|
fmt.Fprintf(os.Stderr, "remove %s: %v\n", path, err)
|
||||||
}
|
}
|
||||||
fmt.Fprintf(os.Stderr, "container %s is not exist\n", id)
|
fmt.Fprintf(os.Stderr, "container %s does not exist\n", id)
|
||||||
}
|
}
|
||||||
hasError = true
|
hasError = true
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Use runc list to identiy instances of containers and their current status.`,
|
|||||||
for _, id := range context.Args() {
|
for _, id := range context.Args() {
|
||||||
container, err := factory.Load(id)
|
container, err := factory.Load(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "container %s is not exist\n", id)
|
fmt.Fprintf(os.Stderr, "container %s does not exist\n", id)
|
||||||
hasError = true
|
hasError = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ Use runc list to identiy instances of containers and their current status.`,
|
|||||||
for _, id := range context.Args() {
|
for _, id := range context.Args() {
|
||||||
container, err := factory.Load(id)
|
container, err := factory.Load(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "container %s is not exist\n", id)
|
fmt.Fprintf(os.Stderr, "container %s does not exist\n", id)
|
||||||
hasError = true
|
hasError = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ your host.`,
|
|||||||
for _, id := range context.Args() {
|
for _, id := range context.Args() {
|
||||||
container, err := factory.Load(id)
|
container, err := factory.Load(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "container %s is not exist\n", id)
|
fmt.Fprintf(os.Stderr, "container %s does not exist\n", id)
|
||||||
hasError = true
|
hasError = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user