fix: add id on version create timeout #485
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the request id to the error message when the
package version create
command times out. This Id can be used withsf package version create report -i THE_ID
to look up the status of the version creation.Added info to the
error.message
and also added the id asVersionCreateRequestId
usingsetData
onSfError
. The key for this was derived from these docsSidenote: The
applyErrorAction
(source) does not appear to be working as expected. Theaction
property is being stripped off when the error is thrown.QA:
yarn compile
yarn link
plugin-packaging
yarn link @salesforce/packaging
../plugin-packaging/bin/run.js package version create --package Dreamhouse --wait 1 -x --code-coverage --version-description "Test version" --version-number 59.0.0.NEXT --json
--wait 1
, this should time out before finishingRun 'sf package version create report -i 08cKY00000001wQYAQ' to check the status."
data.VersionCreateRequestId
Fixes forcedotcom/cli#2605
@W-14670120@