Skip to content

Commit

Permalink
Update error to use NewStackErrf
Browse files Browse the repository at this point in the history
  • Loading branch information
kpaulisse committed Sep 22, 2023
1 parent 6a48ff3 commit 1407ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ func (c *Config) discoverRecursivePackages(ctx context.Context) error {
p := pathlib.NewPath(subPkg)
relativePath, err := p.RelativeToStr(pkgPath)
if err != nil {
return fmt.Errorf("failed to get path for %s relative to %s: %w", subPkg, pkgPath, err)
return stackerr.NewStackErrf(err, "failed to get path for %s relative to %s", subPkg, pkgPath)
}

Check warning on line 603 in pkg/config/config.go

View check run for this annotation

Codecov / codecov/patch

pkg/config/config.go#L602-L603

Added lines #L602 - L603 were not covered by tests
if conf.ExcludePath(relativePath.String()) {
subPkgLog.Info().Msg("subpackage is excluded")
Expand Down

0 comments on commit 1407ff8

Please sign in to comment.