all: refactor errors, improve coverage, refactor

This commit is contained in:
Aleksandr Razumov
2017-06-26 03:18:07 +02:00
parent 5505d6838c
commit f139299e92
10 changed files with 113 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ type ErrorCode int
// ErrNoDefaultReason means that default reason for provided error code
// is not defined in RFC.
var ErrNoDefaultReason = errors.New("No default reason for ErrorCode")
var ErrNoDefaultReason = errors.New("no default reason for ErrorCode")
// AddTo adds ERROR-CODE with default reason to m. If there
// is no default reason, returns ErrNoDefaultReason.