From 9f19815b0843cf54be19f9369eba71d1f42f1775 Mon Sep 17 00:00:00 2001 From: HuKeping Date: Fri, 29 Jan 2016 14:44:44 +0800 Subject: [PATCH] Comments: rework some comments Make the error log message different from the following `subtle.ConstantTimeCompare()` in the same function. Signed-off-by: Hu Keping --- cmd/notary/tuf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/notary/tuf.go b/cmd/notary/tuf.go index fbc48236b5..de6ccdfb47 100644 --- a/cmd/notary/tuf.go +++ b/cmd/notary/tuf.go @@ -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