mirror of https://github.com/jetkvm/kvm.git
Send error the frontend and reset updating state
This commit is contained in:
parent
d205df50e9
commit
d8ee8b4d94
|
|
@ -18,5 +18,7 @@ func (s *State) componentUpdateError(prefix string, err error, l *zerolog.Logger
|
||||||
}
|
}
|
||||||
l.Error().Err(err).Msg(prefix)
|
l.Error().Err(err).Msg(prefix)
|
||||||
s.error = fmt.Sprintf("%s: %v", prefix, err)
|
s.error = fmt.Sprintf("%s: %v", prefix, err)
|
||||||
|
s.updating = false
|
||||||
|
s.triggerStateUpdate()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue