From 1f8984766bbd8a1f6ce232daa40b8c49bf079d9f Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sat, 1 Jul 2023 15:04:00 +0200 Subject: [PATCH] Return on error --- internal/app/host_logs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/host_logs.go b/internal/app/host_logs.go index f34afb9..32073ea 100644 --- a/internal/app/host_logs.go +++ b/internal/app/host_logs.go @@ -24,6 +24,7 @@ func (a *App) HostLogs(hostKey, filter string) (result HostLogsResult) { if err != nil { runtime.LogWarningf(a.ctx, "Could not get %s logs for %s: %s", filter, hostKey, err.Error()) result.Error = err.Error() + return } if res["totalLinesWritten"] != nil {