1package common23import (4 "errors"56 tea "charm.land/bubbletea/v2"7)89// ErrMissingRepo indicates that the requested repository could not be found.10var ErrMissingRepo = errors.New("missing repo")1112// ErrorMsg is a Bubble Tea message that represents an error.13type ErrorMsg error1415// ErrorCmd returns an ErrorMsg from error.16func ErrorCmd(err error) tea.Cmd {17 return func() tea.Msg {18 return ErrorMsg(err)19 }20}