Fix error if continueWrite/continueRead pipe open fails

I think the error message on this line was copied from a few lines above by accident.

Signed-off-by: David Kleingeld <git@davidsk.dev>
This commit is contained in:
David Kleingeld 2023-06-27 12:37:41 +02:00 committed by dvdsk
parent e7785dcb42
commit 4a308cf892
No known key found for this signature in database
GPG Key ID: 6CF9D20C5709A836
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func (c *Cmd) Start() error {
if err != nil {
pidRead.Close()
pidWrite.Close()
return fmt.Errorf("creating pid pipe: %w", err)
return fmt.Errorf("creating continue read/write pipe: %w", err)
}
c.Env = append(c.Env, fmt.Sprintf("_Containers-continue-pipe=%d", len(c.ExtraFiles)+3))
c.ExtraFiles = append(c.ExtraFiles, continueRead)

View File

@ -129,7 +129,7 @@ func (c *Cmd) Start() error {
if err != nil {
pidRead.Close()
pidWrite.Close()
return fmt.Errorf("creating pid pipe: %w", err)
return fmt.Errorf("creating continue read/write pipe: %w", err)
}
c.Env = append(c.Env, fmt.Sprintf("_Containers-continue-pipe=%d", len(c.ExtraFiles)+3))
c.ExtraFiles = append(c.ExtraFiles, continueRead)