Skip to content

Commit

Permalink
fix: return cache map error when encountered
Browse files Browse the repository at this point in the history
Error should be return when encounterd in cache reference mapping.

Signed-off-by: YuQiang <y_q_email@163.com>
  • Loading branch information
PerseidMeteor committed Sep 28, 2023
1 parent 3c73e7b commit 8c91b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c91b3d

Please sign in to comment.