Something went wrong. Try again.
a collection of games playable over ssh!
Something went wrong. Try again.
123456789101112131415161718192021package common
import tea "github.com/charmbracelet/bubbletea"
type ErrorMsg struct { Err error Action tea.Cmd ActionText string Fatal bool}
func ErrorWithBack(err error) tea.Msg { return ErrorMsg{ Err: err, Action: func() tea.Msg { return BackMsg{} }, ActionText: "Back", }}