Skip to content

Commit 84449d9

Browse files
authored
Merge pull request #15 from Bourne-ID-Work/fix-no-output-on-error
Add Output on Error
2 parents 4c0634c + 8a919fd commit 84449d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ func main() {
7575
sockFound, err = runCluster(*requestedNamespace, w, *verbose, *progressBar)
7676
}
7777
if err != nil {
78-
fmt.Fprintf(os.Stderr, "error: %v", err)
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")
80+
w.Flush()
7981
os.Exit(1)
8082
}
8183
if *exitErr && sockFound {

0 commit comments

Comments
 (0)