Error message on demultiplexing command output receives bad error arg (#295)

This commit is contained in:
Frederik Ring 2023-10-29 15:43:34 +01:00 committed by GitHub
parent 2252c26edf
commit 1d549042fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ func (s *script) exec(containerRef string, command string, user string) ([]byte,
outputDone <- err outputDone <- err
}() }()
if <-outputDone != nil { if err := <-outputDone; err != nil {
return nil, nil, fmt.Errorf("exec: error demultiplexing output: %w", err) return nil, nil, fmt.Errorf("exec: error demultiplexing output: %w", err)
} }