1
0
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:
Romein van Buren 2023-01-20 18:19:29 +01:00
parent fff2c53f15
commit c54c3b1ff6
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -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)
}