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:
HuKeping 2016-01-29 14:44:44 +08:00
parent c583f993e3
commit 9f19815b08
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@ func tufVerify(cmd *cobra.Command, args []string) {
target, err := nRepo.GetTargetByName(targetName)
if err != nil {
logrus.Error("notary: data not present in the trusted collection.")
os.Exit(-11)
logrus.Errorf("error retrieving target by name:%s, error:%v", targetName, err)
os.Exit(1)
}
// Create hasher and hash data