worker: fix reporting the import error to composer
The result variable wasn't used at all, kojiFinalizeJobResult is what actually reports the error. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
afd0f7ebc7
commit
972da81a91
1 changed files with 1 additions and 2 deletions
|
|
@ -208,10 +208,9 @@ func (impl *KojiFinalizeJobImpl) Run(job worker.Job) error {
|
|||
})
|
||||
}
|
||||
|
||||
var result worker.KojiFinalizeJobResult
|
||||
err = impl.kojiImport(args.Server, build, buildRoots, images, args.KojiDirectory, initArgs.Token)
|
||||
if err != nil {
|
||||
result.JobError = clienterrors.WorkerClientError(clienterrors.ErrorKojiFinalize, err.Error(), nil)
|
||||
kojiFinalizeJobResult.JobError = clienterrors.WorkerClientError(clienterrors.ErrorKojiFinalize, err.Error(), nil)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue