Skip to content

Commit

Permalink
Add error handler for API request
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Apr 20, 2024
1 parent aa9795b commit 0a414c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ func (s *Server) OnStateChange() {
// Push status update to Panel
sc := remote.ServerStateChange{prevState, st}
s.Log().WithField("state_change", sc).Debug("pushing server status change to panel")
s.client.PushServerStateChange(context.Background(), s.ID(), sc)
err := s.client.PushServerStateChange(context.Background(), s.ID(), sc)
if err != nil {
s.Log().Error("error pushing server status change to panel")
}

// Reset the resource usage to 0 when the process fully stops so that all the UI
// views in the Panel correctly display 0.
Expand Down

0 comments on commit 0a414c9

Please sign in to comment.