Merge pull request #1952 from maplain/fix_typo

add a missing format string argument
This commit is contained in:
Daniel Jiang 2017-04-07 16:12:21 +08:00 committed by GitHub
commit afdbcc2b62

View File

@ -84,7 +84,7 @@ func GetTargets(notaryEndpoint string, username string, fqRepo string) ([]Target
rootJSON := path.Join(notaryCachePath, "tuf", fqRepo, "metadata/root.json")
rmErr := os.Remove(rootJSON)
if rmErr != nil {
log.Warningf("Failed to clear cached root.json: %s, error: %v, when repo is removed from notary the signature status maybe incorrect")
log.Warningf("Failed to clear cached root.json: %s, error: %v, when repo is removed from notary the signature status maybe incorrect", rootJSON, rmErr)
}
for _, t := range targets {
res = append(res, Target{t.Name, t.Hashes})