We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af35ed2 commit 58b8c6cCopy full SHA for 58b8c6c
cmd/cleanup.go
@@ -37,6 +37,10 @@ func getIDs(dockerOutput []byte) []string {
37
}
38
39
func cleanUp() error {
40
+ if err := checkDocker(); err != nil {
41
+ return err
42
+ }
43
+
44
fmt.Println("Stopping Spin OTel Docker containers...")
45
46
getContainers := exec.Command("docker", "ps")
cmd/root.go
@@ -57,8 +57,6 @@ func Execute() {
57
58
59
if err := rootCmd.Execute(); err != nil {
60
- // The docs use fmt.Fprintln(os.Stderr, err) here; however it's not necessary,
61
- // and sometimes results in an error message printing twice
62
os.Exit(1)
63
64
0 commit comments