Handle error events in itctl res load command (#29)
This commit is contained in:
parent
53bc192607
commit
be57cdeea4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user