https://pulumi.com logo
Title
b

brash-hairdresser-60389

03/07/2023, 1:41 PM
Hello Channel, do you know if there is documentation about the structure and possible values of the error for automation API? I’m looking for the doc about the
CommandError
to understand what could the possible output of the
message
could be and the
cause
l

lemon-agent-27707

03/07/2023, 2:52 PM
there is an issue open to improve the experience around structured errors in automation API. The http server examples (available most languages) have some examples of handling errors: https://github.com/pulumi/automation-api-examples/blob/main/go/pulumi_over_http/main.go#L83 Probably the best source for existing error handling is looking at the SDK for the language of your choice, but there are docs for these SDKs as well: https://github.com/pulumi/pulumi/blob/master/sdk/go/auto/errors.go https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#IsCreateStack409Error