Join Slack
Powered by
This message was deleted.
# automation-api
s
sparse-intern-71089
03/07/2023, 1:41 PM
This message was deleted.
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
Open in Slack
Previous
Next