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
commit c862000ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {