mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Fixed MsgError output
This commit is contained in:
parent
c7a6351e5c
commit
09a4e7923c
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user