Skip to content

Commit f77679d

Browse files
committed
Added message that informs user that error message can be revealed with --debug flag
1 parent c355b06 commit f77679d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func ExitWithError(code int, message string, err error) {
6363
fmt.Printf("Error: %s\n", message)
6464
if err != nil && debug {
6565
fmt.Printf("Debug: %s\n", err.Error())
66+
} else {
67+
fmt.Printf("Info: run with --debug flag for more info\n")
6668
}
6769
os.Exit(code)
6870
}

0 commit comments

Comments
 (0)