* Improve error messages output by the CLI This fixes a couple known issues with the way that we present errors from the Pulumi CLI: 1. Any errors from RPC endpoints were bubbling up as they were to the top-level, which was unfortunate because they contained RPC-specific noise that we don't want to present to the user. This commit unwraps errors from resource providers. 2. The "catastrophic error" message often got printed twice 3. Fatal errors are often printed twice, because our CLI top-level prints out the fatal error that it receives before exiting. A lot of the time this error has already been printed. 4. Errors were prefixed by PU####. * Feedback: Omit the 'catastrophic' error message and use a less verbose error message as the final error * Code review feedback: interpretRPCError -> resourceStateAndError * Code review feedback: deleting some commented-out code, error capitalization * Cleanup after rebase |
||
---|---|---|
.. | ||
cloud | ||
local | ||
state | ||
backend.go | ||
display.go | ||
stack.go | ||
updates.go |