Skip to content

Commit

Permalink
Add Output on Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bourne-ID-Work committed Jun 12, 2023
1 parent 1df41fa commit 8a919fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func main() {
sockFound, err = runCluster(*requestedNamespace, w, *verbose, *progressBar)
}
if err != nil {
fmt.Fprintf(os.Stderr, "error: %v", err)
fmt.Fprint(os.Stderr, "Warning: The following table may be incomplete due to errors detected during the run")
fmt.Fprintf(os.Stderr, "error: %v\n", err)
fmt.Fprintln(os.Stderr, "Warning: The following table may be incomplete due to errors detected during the run")
w.Flush()
os.Exit(1)
}
Expand Down

0 comments on commit 8a919fd

Please sign in to comment.