What is the best way to exit a pulumi script if so...
# general
f
What is the best way to exit a pulumi script if something failed in custom code (ie failing rest call)
w
Assuming you want the deployment to fail and not proceed any further, the best approach is to throw an exception that is not handled in code. This will stop the deployment and surface the associated error.
f
perfect thanks!