pulumi/sdk/nodejs/cmd
Joe Duffy cdb2c79e8e
Exit with an error code in the face of unhandled errors (#495)
As part of fixing the exit bug recently, we accidentally made errors
lead to zero exit codes.  As a result, the Pulumi CLI thought the
prgoram exited ordinarily, and proceeded to do its usual planning and
deployment, rather than terminating abruptly.

This is a byproduct of how Node's process.uncaughtException handler
works.  It hijacks and replaces all usual error logic, including the
process.exit part.  This change simply adds back the non-zero exit.

I also added a test (and fixed one other that began failing
afterwards), so that we can prevent regressions down the road.
2017-10-28 17:05:05 -07:00
..
dynamic-provider Shorten lines. 2017-10-16 23:06:53 -07:00
langhost Enable 'use const' linter rule. (#405) 2017-10-10 14:50:55 -07:00
run Exit with an error code in the face of unhandled errors (#495) 2017-10-28 17:05:05 -07:00