From 8c91b3d8d2bbb509196310b51c01fe824144eef9 Mon Sep 17 00:00:00 2001 From: YuQiang Date: Thu, 28 Sep 2023 13:46:23 +0800 Subject: [PATCH] fix: return cache map error when encountered Error should be return when encounterd in cache reference mapping. Signed-off-by: YuQiang --- pkg/adapter/adapter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/adapter/adapter.go b/pkg/adapter/adapter.go index 596f362a..06e9a581 100644 --- a/pkg/adapter/adapter.go +++ b/pkg/adapter/adapter.go @@ -123,6 +123,7 @@ func (adp *LocalAdapter) Convert(ctx context.Context, source string) (*converter logrus.Infof("image was remote cache: %s", source) return nil, nil } + return nil, errors.Wrap(err, "create cache reference by rule") } if err = adp.content.NewRemoteCache(cacheRef); err != nil { return nil, err