mirror of https://github.com/docker/docs.git
Comments: rework some comments
Make the error log message different from the following `subtle.ConstantTimeCompare()` in the same function. Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
parent
c583f993e3
commit
9f19815b08
|
@ -299,8 +299,8 @@ func tufVerify(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
target, err := nRepo.GetTargetByName(targetName)
|
target, err := nRepo.GetTargetByName(targetName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error("notary: data not present in the trusted collection.")
|
logrus.Errorf("error retrieving target by name:%s, error:%v", targetName, err)
|
||||||
os.Exit(-11)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create hasher and hash data
|
// Create hasher and hash data
|
||||||
|
|
Loading…
Reference in New Issue