mirror of
https://github.com/garraflavatra/rolens.git
synced 2024-12-01 13:20:54 +00: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())
|
fmt.Println(err.Error())
|
||||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||||
Type: runtime.ErrorDialog,
|
Type: runtime.ErrorDialog,
|
||||||
Title: "Could not connect",
|
Title: "Could not connect to " + h.Name,
|
||||||
Message: "Failed to establish a connection with " + h.Name,
|
Message: err.Error(),
|
||||||
})
|
})
|
||||||
return nil, nil, nil, errors.New("could not establish a connection with " + h.Name)
|
return nil, nil, nil, errors.New("could not establish a connection with " + h.Name)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user