Skip to content

Commit 8a919fd

Browse files
Add Output on Error
1 parent 1df41fa commit 8a919fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func main() {
7575
sockFound, err = runCluster(*requestedNamespace, w, *verbose, *progressBar)
7676
}
7777
if err != nil {
78-
fmt.Fprintf(os.Stderr, "error: %v", err)
79-
fmt.Fprint(os.Stderr, "Warning: The following table may be incomplete due to errors detected during the run")
78+
fmt.Fprintf(os.Stderr, "error: %v\n", err)
79+
fmt.Fprintln(os.Stderr, "Warning: The following table may be incomplete due to errors detected during the run")
8080
w.Flush()
8181
os.Exit(1)
8282
}

0 commit comments

Comments
 (0)