Skip to content

Commit

Permalink
Merge pull request #834 from jonjohnsonjr/paths
Browse files Browse the repository at this point in the history
Improve path mutation errors
  • Loading branch information
kaniini authored Aug 2, 2023
2 parents 6d6f4a4 + 099504f commit 1631e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/build/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ func mutatePaths(fsys apkfs.FullFS, o *options.Options, ic *types.ImageConfigura
}

if err := pm(fsys, o, mut); err != nil {
return err
return fmt.Errorf("%s mutation on %s: %w", mut.Type, mut.Path, err)
}

if mut.Type != "permissions" {
if err := mutatePermissions(fsys, o, mut); err != nil {
return err
return fmt.Errorf("%s mutation on %s: %w", mut.Type, mut.Path, err)
}
}
}
Expand Down

0 comments on commit 1631e2d

Please sign in to comment.