diff options
Diffstat (limited to 'work')
-rw-r--r-- | work/work.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/work/work.go b/work/work.go index 07461ea..8d53153 100644 --- a/work/work.go +++ b/work/work.go @@ -2,9 +2,13 @@ package work type Work struct { Data []byte - Err error + err error } func (w *Work) Error() error { - return w.Err + return w.err +} + +func (w *Work) SetError(err error) { + w.err = err } |