all repos — homestead @ a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

Code for my website

refactor: return errors with stack traces, where appropriate

Alan Pearce
commit

a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

parent

f17c0bd9ce8ad16b39c9c5ba80c917049e135bed

1 file changed, 6 insertions(+), 3 deletions(-)

changed files
M internal/events/update.gointernal/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) }