What is the proper way of dealing with (runtime) Errors in Pulumi?
Right now I'm just throwing an Error, is there a more suited best practice?
01/15/2020, 4:58 PM
I typically just treat pulumi like any other JS/TS project. wrap exceptions in
"dealing" with errors in
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.
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