summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-02-19 18:16:51 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-02-19 18:16:51 +0100
commitb1b366ac99c06cedff8f0ffc808649f27fa98c42 (patch)
treec9b22b3e1616384ace12bcf2d134027739fab847 /manager
parentf1eb4962060267458883f86bb5f4093b9b1afc47 (diff)
Use a setter to set the Work error
Diffstat (limited to 'manager')
-rw-r--r--manager/manager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager/manager.go b/manager/manager.go
index 5bbd49f..2a58aab 100644
--- a/manager/manager.go
+++ b/manager/manager.go
@@ -21,8 +21,8 @@ func (m *Manager) Run() {
ic := m.Input.Start()
for w := range ic {
- if w.Err != nil {
- fmt.Printf("Got an error when getting Work input: %q\n", w.Err)
+ if w.Error() != nil {
+ fmt.Printf("Got an error when getting Work input: %q\n", w.Error())
continue
}
wg.Add(1)