From c54c3b1ff64a24172eaffb2bca308f0759ab46a9 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 20 Jan 2023 18:19:29 +0100 Subject: [PATCH] Render error message when connectToHost fails --- internal/app/hosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/hosts.go b/internal/app/hosts.go index 43cc48d..7b3244f 100644 --- a/internal/app/hosts.go +++ b/internal/app/hosts.go @@ -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) }