diff --git a/wrapper/wrapper.go b/wrapper/wrapper.go
index <HASH>..<HASH> 100644
--- a/wrapper/wrapper.go
+++ b/wrapper/wrapper.go
@@ -229,6 +229,10 @@ OUTER:
 	}
 	close(pkgChan)
 	wg.Wait()
+	select {
+	case err = <-errChan:
+	default:
+	}
 	return err
 }
wrapper: try to notice the last error

After executing all commands, make one last check on the error
channel, to see whether the last command errored.