diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-12-05 20:02:07 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-12-05 20:02:07 +0100 |
commit | 56eb87944ec5e64daff1d7d0f80e9a60eb12bf96 (patch) | |
tree | 3cb872f9cdeead59b43b94f93004bbbe437a0dae | |
parent | e70b9a7c2f36f75171406981fe152144b8cd2a93 (diff) |
Hide errors for now
-rw-r--r-- | errors.go | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -8,28 +8,28 @@ import ( ) var ( - ErrBadCSR = errors.New("The CSR is unacceptable (e.g., due to a short key)") - ErrBadNonce = errors.New("The client sent an unacceptable anti-replay nonce") - ErrConnection = errors.New("The server could not connect to the client for DV") - ErrDnssec = errors.New("The server could not validate a DNSSEC signed domain") - ErrMalformed = errors.New("The request message was malformed") - ErrServerInternal = errors.New("The server experienced an internal error") - ErrTLS = errors.New("The server experienced a TLS error during DV") - ErrUnauthorized = errors.New("The client lacks sufficient authorization") - ErrUnknownHost = errors.New("The server could not resolve a domain name") + errBadCSR = errors.New("The CSR is unacceptable (e.g., due to a short key)") + errBadNonce = errors.New("The client sent an unacceptable anti-replay nonce") + errConnection = errors.New("The server could not connect to the client for DV") + errDnssec = errors.New("The server could not validate a DNSSEC signed domain") + errMalformed = errors.New("The request message was malformed") + errServerInternal = errors.New("The server experienced an internal error") + errTLS = errors.New("The server experienced a TLS error during DV") + errUnauthorized = errors.New("The client lacks sufficient authorization") + errUnknownHost = errors.New("The server could not resolve a domain name") ) // Errors var urnErrors = map[string]error{ - "urn:acme:error:badCSR": ErrBadCSR, - "urn:acme:error:badNonce": ErrBadNonce, - "urn:acme:error:connection": ErrConnection, - "urn:acme:error:dnssec": ErrDnssec, - "urn:acme:error:malformed": ErrMalformed, - "urn:acme:error:serverInternal": ErrServerInternal, - "urn:acme:error:tls": ErrTLS, - "urn:acme:error:unauthorized": ErrUnauthorized, - "urn:acme:error:unknownHost": ErrUnknownHost, + "urn:acme:error:badCSR": errBadCSR, + "urn:acme:error:badNonce": errBadNonce, + "urn:acme:error:connection": errConnection, + "urn:acme:error:dnssec": errDnssec, + "urn:acme:error:malformed": errMalformed, + "urn:acme:error:serverInternal": errServerInternal, + "urn:acme:error:tls": errTLS, + "urn:acme:error:unauthorized": errUnauthorized, + "urn:acme:error:unknownHost": errUnknownHost, } func handleError(r *http.Response) error { |