Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/jetstream/plugins/cfapppush/unarchive.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cfapppush

import (
"context"
"errors"
"fmt"
"io"
"os"
Expand Down Expand Up @@ -64,8 +65,9 @@ func unarchive(src, dst string) error {
}
in, err := entry.Open()
if err != nil {
out.Close()
return err
// Join rather than drop the close error - the open failure
// matters more, but a failed close is still worth surfacing
return errors.Join(err, out.Close())
}
defer in.Close()
_, err = io.Copy(out, in)
Expand Down
Loading