1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 13:07:58 +00:00

Return on error

This commit is contained in:
Romein van Buren 2023-07-01 15:04:00 +02:00
parent 9c85259964
commit 1f8984766b
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -24,6 +24,7 @@ func (a *App) HostLogs(hostKey, filter string) (result HostLogsResult) {
if err != nil { if err != nil {
runtime.LogWarningf(a.ctx, "Could not get %s logs for %s: %s", filter, hostKey, err.Error()) runtime.LogWarningf(a.ctx, "Could not get %s logs for %s: %s", filter, hostKey, err.Error())
result.Error = err.Error() result.Error = err.Error()
return
} }
if res["totalLinesWritten"] != nil { if res["totalLinesWritten"] != nil {