pulumi/pkg/diag
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
..
colors Attempt to fix colorization (#740) 2017-12-18 11:42:32 -08:00
diag.go Remove Document and Location 2018-01-30 16:42:39 -08:00
errors.go Remove pkg/compiler/errors 2018-02-28 17:41:04 -08:00
sink.go Improve error messages output by the CLI (#1011) 2018-03-09 15:43:16 -08:00
sink_test.go Attempt to fix colorization (#740) 2017-12-18 11:42:32 -08:00