diff --git a/pkg/jsonnet/imports.go b/pkg/jsonnet/imports.go index 5843c8d8b..a4807afa8 100644 --- a/pkg/jsonnet/imports.go +++ b/pkg/jsonnet/imports.go @@ -92,7 +92,7 @@ func importRecursive(list map[string]bool, vm *jsonnet.VM, node ast.Node, curren contents, foundAt, err := vm.ImportAST(currentPath, p) if err != nil { - return errors.Wrapf(err, "importing %s from %s", p, currentPath) + return fmt.Errorf("importing '%s' from '%s': %w", p, currentPath, err) } abs, _ := filepath.Abs(foundAt)