pulumi/sdk/go/pulumi/config
Fraser Waters 3560333ae6
Clean up uses of .Error() (#14965)
Combination of a few cleanups.

1. Don't call .Error() on errors that are being passed to "%s" format
functions. Format will call `Error()` itself.
2. Don't call assert.Error then assert.Equal/Contains, just use
assert.ErrorEqual/ErrorContains instead.
3. Use "%w" if appropriate, instead of "%v"/"%s".
2023-12-20 15:54:06 +00:00
..
config.go Fix types_builtins_test.go.template so 'make gen' stops changing types_builtins_test.go (#9322) 2022-03-31 12:21:05 +01:00
config_test.go Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
get.go Fix types_builtins_test.go.template so 'make gen' stops changing types_builtins_test.go (#9322) 2022-03-31 12:21:05 +01:00
require.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
try.go Return errors on parse failures for `config.Try*` (#9407) 2022-04-20 09:46:15 +02:00