pulumi/pkg
Joe Duffy d3fb5b535d Improve the import failure error message
If we fail to import a resource due to a state mismatch, the
error today is fairly generic:

    error: inputs to import do not match the existing resource

Although the information is available in the normal diff -- both
alongside the resource in the tree view and in the "details" view
during the preview -- the error itself is initially jarring in that
it doesn't tell you much about why the failure occurred.

This change adds a little bit more information to the error
message, including the ID of the resource and all unique
keys that were found to differ. The result is a bit nicer:

    error: imported resource sg-04aeda9a214730248's property
        'ingress' does not match the existing value

This fixes #3737.
2020-02-20 11:09:37 -08:00
..
apitype Add version tag to apitypes (#3912) 2020-02-12 10:13:25 -08:00
backend improve PAC error output (#3881) 2020-02-13 15:16:46 -08:00
codegen Fix a few codegen issues. (#3915) 2020-02-11 14:34:22 -08:00
diag Do not prefix failed operation errors. 2019-11-19 17:17:17 -08:00
encoding Add license headers 2018-05-22 15:02:47 -07:00
engine Improve PP naming for local PPs (#3839) 2020-01-30 13:31:41 -08:00
graph Improve `stack graph`. (#3431) 2019-10-31 17:39:15 -07:00
npm Fix for windows policy-pack install (#3837) 2020-01-29 16:02:44 -08:00
operations Revert "Fix getting logs in tests for Lambdas" (#3923) 2020-02-13 22:38:12 -08:00
resource Improve the import failure error message 2020-02-20 11:09:37 -08:00
secrets Cache account information. (#3340) 2019-10-15 15:37:57 -07:00
testing Regression tests for StackReference in the Python SDK (#3913) 2020-02-17 10:40:46 -08:00
tokens Fix comment about QName regex (#3121) 2019-08-20 14:43:48 -07:00
tools Add a `WriteString` method to `tools/GenWriter`. (#1839) 2018-08-29 14:43:20 -07:00
util Check if TRAVIS_PULL_REQUEST is false before setting the ci vars' PRNumber property (#3869) 2020-02-06 12:25:06 -08:00
version Add license headers 2018-05-22 15:02:47 -07:00
workspace Move stack name validation to the Backend interface (#3679) 2019-12-30 10:24:48 -08:00