worker: handle error when closing osbuild's stdin
This will only happen rarely, but it will be good to know it happened when it does.
This commit is contained in:
parent
89814c3107
commit
4e46eacd64
1 changed files with 5 additions and 2 deletions
|
|
@ -43,8 +43,11 @@ func RunOSBuild(manifest distro.Manifest, store, outputDirectory string, errorWr
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("error encoding osbuild pipeline: %v", err)
|
||||
}
|
||||
// FIXME: handle or comment this possible error
|
||||
_ = stdin.Close()
|
||||
|
||||
err = stdin.Close()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error closing osbuild's stdin: %v", err)
|
||||
}
|
||||
|
||||
var result osbuild.Result
|
||||
err = json.NewDecoder(stdout).Decode(&result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue