Skip to content

Commit

Permalink
Merge pull request #14 from rmohr/hardlink-error
Browse files Browse the repository at this point in the history
Collect acutal error when creating hard links fails
  • Loading branch information
rmohr authored Sep 8, 2021
2 parents eeba90f + a961ef1 commit ff9ea1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/rpm/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ func Untar(tmpRoot string, tarFile string) error {
for target, source := range hardLinks {
source := filepath.Join(tmpRoot, source)
if err := os.Link(source, target); err != nil {
return fmt.Errorf("failed to create hard link from %s to %s", target, source)

return fmt.Errorf("failed to create hard link from %s to %s: %v", target, source, err)
}
}
return nil
Expand Down

0 comments on commit ff9ea1a

Please sign in to comment.