diff options
author | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
commit | d199ef71b9644afbbba064c317cd0991be1c2443 (patch) | |
tree | f777eb90f10ca0e7dbc46227fc76c61f02111946 /errors | |
parent | 91cf918b30938129609323ded53e190385e019a6 (diff) |
Supervised pool
Diffstat (limited to 'errors')
-rwxr-xr-x | errors/errors.go | 15 | ||||
-rwxr-xr-x | errors/go.mod | 3 |
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 |