refactor: return errors with stack traces, where appropriate
1 file changed, 6 insertions(+), 3 deletions(-)
changed files
M internal/events/update.go → internal/events/update.go
@@ -1,6 +1,9 @@ package events -import "github.com/fsnotify/fsnotify" +import ( + "github.com/fsnotify/fsnotify" + "gitlab.com/tozd/go/errors" +) type CIEvent struct { RunID uint64@@ -16,6 +19,6 @@ FSEvent } type Listener interface { - GetLatestRunID() (uint64, error) - Subscribe() (<-chan Event, error) + GetLatestRunID() (uint64, errors.E) + Subscribe() (<-chan Event, errors.E) }