Skip to content

Commit

Permalink
Error message on demultiplexing command output receives bad error arg (
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Oct 29, 2023
1 parent 2252c26 commit 1d54904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/backup/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *script) exec(containerRef string, command string, user string) ([]byte,
outputDone <- err
}()

if <-outputDone != nil {
if err := <-outputDone; err != nil {
return nil, nil, fmt.Errorf("exec: error demultiplexing output: %w", err)
}

Expand Down

0 comments on commit 1d54904

Please sign in to comment.