diff --git a/src/common/utils/registry/repository.go b/src/common/utils/registry/repository.go index 7a4a1c6c7..94bb2108d 100644 --- a/src/common/utils/registry/repository.go +++ b/src/common/utils/registry/repository.go @@ -272,7 +272,10 @@ func (r *Repository) MountBlob(digest, from string) error { if err != nil { return err } - return fmt.Errorf("status %d, body: %s", resp.StatusCode, string(b)) + return &commonhttp.Error{ + Code: resp.StatusCode, + Message: string(b), + } } return nil