Skip to content

Commit

Permalink
Merge pull request #15 from Bourne-ID-Work/fix-no-output-on-error
Browse files Browse the repository at this point in the history
Add Output on Error
  • Loading branch information
rothgar authored Jun 12, 2023
2 parents 4c0634c + 8a919fd commit 84449d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func main() {
sockFound, err = runCluster(*requestedNamespace, w, *verbose, *progressBar)
}
if err != nil {
fmt.Fprintf(os.Stderr, "error: %v", err)
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)
}
if *exitErr && sockFound {
Expand Down

0 comments on commit 84449d9

Please sign in to comment.