From bb90d20189b0ea364f3dca28d49935e0d71eec19 Mon Sep 17 00:00:00 2001 From: Jake Malachowski <5766239+jakemalachowski@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:36:46 -0600 Subject: [PATCH] Add a more helpful error message when the CLI cannot start an interactive session (#151) --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index a1843c4..77b3edc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -109,7 +109,7 @@ var rootCmd = &cobra.Command{ p := tea.NewProgram(m, tea.WithAltScreen()) _, err := p.Run() if err != nil { - panic(fmt.Sprintf("failed to initialize interface: %v", err)) + panic(fmt.Sprintf("Failed to initialize interface. Use -o to specify a non-interactive output mode: %v", err)) } return nil }