mirror of https://github.com/pulumi/pulumi.git
![]() Migrates all uses of contract.{Assert, AssertNoError, Require} in sdk/ to the `*f` variants that are required to provide more error context. Step towards deprecating non-f variants entirely. For context, `contract.Require` is similar to `contract.Assert`, except it has a required parameter name as an argument: func Require(cond bool, param string) func Requiref(cond bool, param string, msg string, args ...any) It includes the parameter name in the error message by default, so the `msg` and `args` should only describe the constraint without naming the parameter. Refs #12132 |
||
---|---|---|
.. | ||
analyzer.go | ||
analyzer_plugin.go | ||
check.go | ||
config_source.go | ||
context.go | ||
doc.go | ||
host.go | ||
host_server.go | ||
langruntime.go | ||
langruntime_plugin.go | ||
plugin.go | ||
plugin_test.go | ||
provider.go | ||
provider_plugin.go | ||
provider_plugin_test.go | ||
provider_server.go | ||
provider_server_test.go | ||
provider_test.go | ||
provider_unimplemented.go | ||
rpc.go | ||
rpc_rapid_test.go | ||
rpc_test.go |