summaryrefslogtreecommitdiff
path: root/errors/errors.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-28 14:42:16 +0300
committerWolfy-J <[email protected]>2020-10-28 14:42:16 +0300
commit810bc58c7b64029d21504d3f7286ccaeb16b0207 (patch)
treec26be1bc76cc7c9fb9262cfd54855c50c416ec4c /errors/errors.go
parenta8e31d57147252b0ef28237bf3094d7f5af01f5e (diff)
parent47a570c220a36ae7b770ea594a41637fa31fc8e8 (diff)
Merge branch 'release_2.0' into feature/logging
Diffstat (limited to 'errors/errors.go')
-rwxr-xr-xerrors/errors.go16
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"
}