Merge pull request #4548 from darfux/ret_error_if_metric_fails

ctr: Return error if task.Metrics fails
This commit is contained in:
Akihiro Suda
2020-09-10 20:00:33 +09:00
committed by GitHub

View File

@@ -73,7 +73,7 @@ var metricsCommand = cli.Command{
}
metric, err := task.Metrics(ctx)
if err != nil {
return nil
return err
}
anydata, err := typeurl.UnmarshalAny(metric.Data)
if err != nil {