diff --git a/cmd/itctl/resources.go b/cmd/itctl/resources.go index 2e5338e..2600ef5 100644 --- a/cmd/itctl/resources.go +++ b/cmd/itctl/resources.go @@ -35,6 +35,10 @@ func resLoad(ctx context.Context, args []string) error { } for evt := range progCh { + if evt.Err != nil { + return evt.Err + } + if evt.Operation == infinitime.ResourceOperationRemoveObsolete { bar.SetTemplateString(rmTmpl) bar.Set("filename", evt.Name)