Report layer upload as unavialable when data missing
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
c080c40030
commit
f926a93778
2 changed files with 27 additions and 1 deletions
|
@ -94,3 +94,14 @@ type ErrLayerInvalidSize struct {
|
|||
func (err ErrLayerInvalidSize) Error() string {
|
||||
return fmt.Sprintf("invalid layer size: %d", err.Size)
|
||||
}
|
||||
|
||||
// ErrLayerUploadUnavailable signals missing upload data, either when no data
|
||||
// has been received or when the backend reports the data as missing. This is
|
||||
// different from ErrLayerUploadUnknown.
|
||||
type ErrLayerUploadUnavailable struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
func (err ErrLayerUploadUnavailable) Error() string {
|
||||
return fmt.Sprintf("layer upload unavialable: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue