From a0a6423557eb4fb8237e1dd60f9d8f74d7db5322 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 1 May 2017 16:03:18 +0200 Subject: err --- sig/sig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sig/sig.go b/sig/sig.go index 23d1739..b6b9c11 100644 --- a/sig/sig.go +++ b/sig/sig.go @@ -11,7 +11,7 @@ import ( "strings" ) -var ErrUntrustedComment = errors.New("expected untrusted comment") +var ErrComment = errors.New("expected untrusted comment") // Block represents a encoded signify key or signature // @@ -47,7 +47,7 @@ func Decode(data []byte) (*Block, error) { return nil, err } if !strings.HasPrefix(comment, untrusted) { - return nil, ErrUntrustedComment + return nil, ErrComment } raw, err := r.ReadString('\n') if err != nil { -- cgit v1.2.3