Hey yall. I'm having an issue where I'm doing `Som...
# general
v
Hey yall. I'm having an issue where I'm doing
SomeOutput.apply(() => throw Error()
but the error isn't really bubbling up and stopping Pulumi, causing it to hang since other resources use the created output from this call. How can I ensure Pulumi stops on this error? Does the output need to be provided as an output of the Pulumi script?
l
You should throw a ResourceError. Also you need to be aware that it won't be thrown until dependencies are being resolved, after all your other code has completed.
v
Thanks! I'll give that a shot
b
is the "don't throw regular
Error
, throw
pulumi.ResourceError
" documented anywhere?
l