]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/openpgp/error: use Error in names of error impl types
authorRuss Cox <rsc@golang.org>
Fri, 28 Oct 2011 02:38:32 +0000 (19:38 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 28 Oct 2011 02:38:32 +0000 (19:38 -0700)
Will make gofix for error work better.
There is no other indication in this file that
these are actually error implementations.

(They are only used elsewhere.)

R=bradfitz
CC=golang-dev
https://golang.org/cl/5305068

src/pkg/crypto/openpgp/error/error.go

index 3759ce16122672bebe0500b184c62d483e1a0777..9cc21f1f8f67a43fcfb2cf6ea55566c1c8ff4080 100644 (file)
@@ -41,21 +41,21 @@ func (b SignatureError) String() string {
        return "OpenPGP signature invalid: " + string(b)
 }
 
-type keyIncorrect int
+type keyIncorrectError int
 
-func (ki keyIncorrect) String() string {
+func (ki keyIncorrectError) String() string {
        return "the given key was incorrect"
 }
 
-var KeyIncorrectError = keyIncorrect(0)
+var KeyIncorrectError = keyIncorrectError(0)
 
-type unknownIssuer int
+type unknownIssuerError int
 
-func (unknownIssuer) String() string {
+func (unknownIssuerError) String() string {
        return "signature make by unknown entity"
 }
 
-var UnknownIssuerError = unknownIssuer(0)
+var UnknownIssuerError = unknownIssuerError(0)
 
 type UnknownPacketTypeError uint8