https://pulumi.com logo
#general
Title
# general
f

few-processor-86645

03/19/2019, 9:15 AM
What is the best way to exit a pulumi script if something failed in custom code (ie failing rest call)
w

white-balloon-205

03/19/2019, 4:15 PM
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

few-processor-86645

03/20/2019, 9:12 AM
perfect thanks!