diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 0a2be1cbe6e480fe5719640711bd4caffb430229..c1adfc8016033673610e0b37970ec75a9aea778a 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -3,6 +3,7 @@ package cmd import ( "bytes" "context" + "errors" "fmt" "io" "log/slog" @@ -93,7 +94,7 @@ crush -y if _, err := program.Run(); err != nil { event.Error(err) slog.Error("TUI run error", "error", err) - return fmt.Errorf("TUI error: %v", err) + return errors.New("Crush crashed. If metrics are enabled, we were notified about it. If you'd like to report it, please copy the stacktrace above and open an issue at https://github.com/charmbracelet/crush/issues/new?template=bug.yml") } return nil },