summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.go b/worker.go
index 58899e41..a10d36d6 100644
--- a/worker.go
+++ b/worker.go
@@ -111,9 +111,9 @@ func (w *Worker) Wait() error {
if err != nil {
if ws.Exited() {
return nil
+ } else {
+ return err
}
- } else {
- return err
}
}