Skip to content

Commit

Permalink
fix: add id on version create timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jan 11, 2024
1 parent a8f3802 commit 6abaa79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/package/packageVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ export class PackageVersion {
if (createResult.Id) {
return PackageVersion.pollCreateStatus(createResult.Id, options.connection, options.project, polling).catch(
(err: Error) => {
if (err.name === 'PollingClientTimeout') {
err.message += ` Run 'sf package version create report -i ${createResult.Id}' to check the status.`;
}
// TODO
// until package2 is GA, wrap perm-based errors w/ 'contact sfdc' action (REMOVE once package2 is GA'd)
throw applyErrorAction(massageErrorMessage(err));
Expand Down

0 comments on commit 6abaa79

Please sign in to comment.