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:
parent
c6b9bf4545
commit
b916a88242
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue