freckle / stackctl

Manage CloudFormation Stacks through specifications
MIT License
14 stars 1 forks source link

Handle AWS ServiceError to more readable exit #50

Closed pbrisbin closed 1 year ago

pbrisbin commented 1 year ago

NOTE: I included two pre-factor commits, which I think you can skip review if you like.


Any un-handled AWS errors would crash with a shown exception that is difficult to read. This handler just reformats it to a more readable error-log before still exiting failure.

We implemented this in a downstream user of the library, but it makes sense to be in use all the time and provided by us.