mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Pass through github client errors to display
Per #598, we crash on occasion. We are swallowing errors incorrectly, and should catch/render
This commit is contained in:
@@ -15,6 +15,8 @@ func (widget *Widget) content() (string, string, bool) {
|
||||
title := fmt.Sprintf("%s - %s", widget.CommonSettings().Title, widget.title(repo))
|
||||
if repo == nil {
|
||||
return title, " GitHub repo data is unavailable ", false
|
||||
} else if repo.Err != nil {
|
||||
return title, repo.Err.Error(), true
|
||||
}
|
||||
|
||||
_, _, width, _ := widget.View.GetRect()
|
||||
|
||||
Reference in New Issue
Block a user