I typically just treat pulumi like any other JS/TS project. wrap exceptions in
try/catch/finally
"dealing" with errors in
catch
accordingly. If I want to log and exit, I log what I want and process.exit. If I want to retry something, I retry. etc ... I very much prefer this to relying on uncaught exceptions to stop my program and log the "throw". Just my opinion.
a
ambitious-ram-5811
01/15/2020, 5:11 PM
tbh, I always throw. Pulumi is already handling logging and process.exit'ing, manually killing the process is unnecessary imho
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.