Handle error events in itctl res load command (#29)

This commit is contained in:
Arsen Musayelyan 2022-10-17 12:23:06 -07:00
parent 1e072a3540
commit c6458720e9
1 changed files with 4 additions and 0 deletions

View File

@ -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)