Skip to content

Commit

Permalink
added better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanisham committed Apr 10, 2024
1 parent 137e0db commit 2d7ef8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/meta/cta.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func CtaFatal(err error) {
Bold(true).
Underline(true)

fmt.Printf("\nPlease report this error as a GitHub issue.\n%s\n", blueLink.Render("https://github.com/tristanisham/zvm/issues/\n"))
yellowText := lipgloss.NewStyle().
Foreground(lipgloss.Color("#fee12b"))

fmt.Printf("\nIf you're experiencing a bug, run %s. If there's a new version of ZVM, we may have already fixed your bug in a new release :)\n", yellowText.Render("zvm upgrade"))
fmt.Printf("Otherwise, please report this error as a GitHub issue.\n%s\n", blueLink.Render("https://github.com/tristanisham/zvm/issues/\n"))
os.Exit(1)
}

0 comments on commit 2d7ef8b

Please sign in to comment.