summaryrefslogtreecommitdiff
path: root/errors
diff options
context:
space:
mode:
Diffstat (limited to 'errors')
-rwxr-xr-xerrors/errors.go15
-rwxr-xr-xerrors/go.mod3
2 files changed, 6 insertions, 12 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"
diff --git a/errors/go.mod b/errors/go.mod
deleted file mode 100755
index 1eaacc23..00000000
--- a/errors/go.mod
+++ /dev/null
@@ -1,3 +0,0 @@
-module github.com/48d90782/errors
-
-go 1.15