Skip to content

Commit

Permalink
Merge pull request #63 from alrs/fix-analyze-swallowed-error
Browse files Browse the repository at this point in the history
pkg/analyze: Fix swallowed error
  • Loading branch information
divolgin authored Aug 27, 2019
2 parents a8bdda4 + 09deffb commit 8125d55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analyze/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func extractTroubleshootBundle(reader io.Reader, destDir string) error {
case tar.TypeReg:
name := filepath.Join(destDir, header.Name)
file, err := os.OpenFile(name, os.O_RDWR|os.O_CREATE, os.FileMode(header.Mode))
if err != nil {
return err
}
_, err = io.Copy(file, tarReader)
file.Close()
if err != nil {
Expand Down

0 comments on commit 8125d55

Please sign in to comment.