Skip to content

Commit

Permalink
add error wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
aibarbetta committed Apr 14, 2022
1 parent 6ecdc2e commit 0a203df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/internal/target/kusttarget_configplugin.go
Expand Up @@ -6,6 +6,7 @@ package target
import (
"fmt"

"github.com/pkg/errors"
"sigs.k8s.io/kustomize/api/internal/plugins/builtinconfig"
"sigs.k8s.io/kustomize/api/internal/plugins/builtinhelpers"
"sigs.k8s.io/kustomize/api/resmap"
Expand Down Expand Up @@ -288,7 +289,7 @@ var transformerConfigurators = map[builtinhelpers.BuiltinPluginType]func(
p := f()
err = kt.configureBuiltinPlugin(p, c, bpt)
if err != nil {
return nil, err
return nil, errors.Wrap(err, "failed to configure transformer")
}
result = append(result, p)
return
Expand Down

0 comments on commit 0a203df

Please sign in to comment.