summaryrefslogtreecommitdiff
path: root/errors/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors/errors.go')
-rwxr-xr-xerrors/errors.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/errors/errors.go b/errors/errors.go
index def408d8..c9455367 100755
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -39,21 +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"