diff options
author | Wolfy-J <[email protected]> | 2020-10-28 14:42:16 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-28 14:42:16 +0300 |
commit | 810bc58c7b64029d21504d3f7286ccaeb16b0207 (patch) | |
tree | c26be1bc76cc7c9fb9262cfd54855c50c416ec4c /errors/errors.go | |
parent | a8e31d57147252b0ef28237bf3094d7f5af01f5e (diff) | |
parent | 47a570c220a36ae7b770ea594a41637fa31fc8e8 (diff) |
Merge branch 'release_2.0' into feature/logging
Diffstat (limited to 'errors/errors.go')
-rwxr-xr-x | errors/errors.go | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/errors/errors.go b/errors/errors.go index def408d8..ec621b67 100755 --- a/errors/errors.go +++ b/errors/errors.go @@ -39,22 +39,18 @@ type Kind uint8 // Kinds of errors. const ( Undefined Kind = iota // Undefined error. - Network - Other - Test + ErrWatcherStopped + TimeOut ) func (k Kind) String() string { switch k { case Undefined: return "UNDEF" - case Network: - return "Network error" - case Other: - return "Other" - case Test: - return "Test" - + case ErrWatcherStopped: + return "Watcher stopped" + case TimeOut: + return "TimedOut" } return "unknown error kind" } |