Merge pull request #2424 from monopole/fixErrorMessage

Improve config failure error message.
This commit is contained in:
Jeff Regan
2020-04-30 15:41:04 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -325,7 +325,8 @@ func (kt *KustTarget) configureBuiltinPlugin(
}
err = p.Config(resmap.NewPluginHelpers(kt.ldr, kt.validator, kt.rFactory), y)
if err != nil {
return errors.Wrapf(err, "builtin %s config: %v", bpt, y)
return errors.Wrapf(
err, "trouble configuring builtin %s with config: `\n%s`", bpt, string(y))
}
return nil
}

View File

@@ -308,8 +308,7 @@ An example using ` + "`" + `v1/List` + "`" + ` as input:
apiVersion: v1
kind: List
items:
spec:
- apiVersion: foo-corp.com/v1
- apiVersion: foo-corp.com/v1
kind: FulfillmentCenter
metadata:
name: staging