mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
commit
93f86e321b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user