pulumi/pkg/backend
Sean Gillespie 703a954839
Improve error messages output by the CLI (#1011)
* 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
2018-03-09 15:43:16 -08:00
..
cloud Adds a pulumi new command to scaffold a project (#1008) 2018-03-09 15:27:55 -08:00
local Improve error messages output by the CLI (#1011) 2018-03-09 15:43:16 -08:00
state Upgrade configuration files on first run 2018-02-28 17:37:18 -08:00
backend.go Reintroduce untyped deployments (#996) 2018-03-03 12:12:54 -08:00
display.go Emit richer events for resource steps 2018-03-09 13:11:42 -08:00
stack.go Reintroduce untyped deployments (#996) 2018-03-03 12:12:54 -08:00
updates.go Add deployment to UpdateInfo (#1013) 2018-03-08 13:56:59 -08:00