Skip to content

Commit

Permalink
suppress errors during listing peers
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed May 18, 2020
1 parent 3a1744a commit 820d064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tinc-desktop/screen_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (sc *screenNetwork) listActivePeers(container *widget.Box) {
peers, err := ntw.API().Peers(sc.Ctx)
updateDialog.Hide()
if err != nil {
dialog.NewInformation("Failed", err.Error(), sc.Window).Show()
log.Println("list active peers:", err)
return
}

Expand Down Expand Up @@ -165,7 +165,7 @@ func (sc *screenNetwork) start() {
if err != nil {
startingDialog.Hide()
log.Println("start", sc.Network.Name(), err)
dialog.NewInformation("Failed", err.Error(), sc.Window).Show()
dialog.NewInformation("Failed to start", err.Error(), sc.Window).Show()
return
}
startingDialog.Hide()
Expand Down

0 comments on commit 820d064

Please sign in to comment.