Ver código fonte

add formatting directive to failure to stop container error

unclejack 12 anos atrás
pai
commit
641ddaeb03
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1399,7 +1399,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 			for sig := range signals {
 			for sig := range signals {
 				fmt.Printf("\nReceived signal: %s; cleaning up\n", sig)
 				fmt.Printf("\nReceived signal: %s; cleaning up\n", sig)
 				if err := cli.CmdStop("-t", "4", runResult.ID); err != nil {
 				if err := cli.CmdStop("-t", "4", runResult.ID); err != nil {
-					fmt.Printf("failed to stop container:", err)
+					fmt.Printf("failed to stop container: %v", err)
 				}
 				}
 			}
 			}
 		}()
 		}()