1
0
Fork 0

Fixed MsgError output

This commit is contained in:
マリウス 2023-01-05 15:26:08 -05:00
parent c7a6351e5c
commit 09a4e7923c
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ func handleMsgErrorCmd(mi interface{}, c cmd.Command) (bool, []tea.Cmd) {
var cmds []tea.Cmd
if err := c.GetArg("error"); err != nil {
m.ctx.Logger.Debugf("Setting error: %v", err)
m.errs = append(m.errs, err.(error))
}
if errs := c.GetArg("errors"); errs != nil {

View File

@ -84,7 +84,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, tea.Batch(cmds...)
}
func (m Model) setErrorContent() {
func (m *Model) setErrorContent() {
if len(m.errs) > 0 {
var tmp string = ""
for _, err := range m.errs {