1
0
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:
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()) 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)
} }