Merge pull request #8903 from wy65701436/fix-8807

fix #8807
This commit is contained in:
Daniel Jiang 2019-08-30 18:23:05 +08:00 committed by GitHub
commit 93f86e321b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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