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:
parent
9c85259964
commit
1f8984766b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user