aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-05-01 16:03:18 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-05-01 16:03:18 +0200
commita0a6423557eb4fb8237e1dd60f9d8f74d7db5322 (patch)
tree489fe7b11b6beaf264f56cdb5bce6685684b7f69
parenta627541800a5c088d5db6d50bcedb85e1728ce81 (diff)
err
-rw-r--r--sig/sig.go4
1 files 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 {