mirror of
https://github.com/garraflavatra/rolens.git
synced 2024-12-01 14:20:54 +01:00
Render error message when connectToHost fails
This commit is contained in:
parent
fff2c53f15
commit
c54c3b1ff6
@ -210,8 +210,8 @@ func (a *App) connectToHost(hostKey string) (*mongo.Client, context.Context, fun
|
||||
fmt.Println(err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Type: runtime.ErrorDialog,
|
||||
Title: "Could not connect",
|
||||
Message: "Failed to establish a connection with " + h.Name,
|
||||
Title: "Could not connect to " + h.Name,
|
||||
Message: err.Error(),
|
||||
})
|
||||
return nil, nil, nil, errors.New("could not establish a connection with " + h.Name)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user