mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
already have a ErrMismatchedChecksum in tuf/data/errors. Also, have the CheckHashes function take a role name so that the ErrMismatchedChecksum error can include the role name. Signed-off-by: Ying Li <ying.li@docker.com>
15 lines
230 B
Go
15 lines
230 B
Go
package client
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// ErrCorruptedCache - local data is incorrect
|
|
type ErrCorruptedCache struct {
|
|
file string
|
|
}
|
|
|
|
func (e ErrCorruptedCache) Error() string {
|
|
return fmt.Sprintf("cache is corrupted: %s", e.file)
|
|
}
|