Skip to content

Commit

Permalink
improved splash messages visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkv committed Oct 15, 2019
1 parent 3a244f2 commit f82da70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ func (ui *UI) errToUser(err error) string {
return "Unable to connect to OctoPrint, check if it running."
} else if strings.Contains(text, "request canceled") {
return "Loading..."
} else if strings.Contains(text, "connection broken") {
return "Loading..."
}

return fmt.Sprintf("Unexpected error: %s", err)
Expand Down

0 comments on commit f82da70

Please sign in to comment.