worker: fix passing the result from osbuild when it fails

I tried fixing this in 181128c5 and forgot to pass the right error in one
place. This commit fixes it.
This commit is contained in:
Ondřej Budai 2020-04-28 15:02:51 +02:00 committed by Tom Gundersen
parent c6b9bf4545
commit b916a88242

View file

@ -71,7 +71,7 @@ func RunJob(job *worker.Job, uploadFunc func(*worker.Job, io.Reader) error) (*co
result, err := RunOSBuild(job.Manifest, tmpStore, os.Stderr)
if err != nil {
return result, fmt.Errorf("osbuild error: %v", err)
return nil, err
}
var r []error