@salesforce/core
Advanced tools
Comparing version
@@ -51,2 +51,5 @@ "use strict"; | ||
const logger = await logger_1.Logger.child('scratchOrgResume'); | ||
if (timeout.minutes === 0) { | ||
throw namedMessages.createError('StillInProgressError', [scratchOrgInfo.Status], ['action.StillInProgress']); | ||
} | ||
logger.debug(`PollingTimeout in minutes: ${timeout.minutes}`); | ||
@@ -83,4 +86,13 @@ const options = { | ||
const client = await pollingClient_1.PollingClient.create(options); | ||
const result = await client.subscribe(); | ||
return (0, exports.checkScratchOrgInfoForErrors)(result, hubUsername); | ||
try { | ||
const result = await client.subscribe(); | ||
return await (0, exports.checkScratchOrgInfoForErrors)(result, hubUsername); | ||
} | ||
catch (error) { | ||
const e = error; | ||
if (e.name === 'ScratchOrgResumeTimeOutError') { | ||
e.message = e.message + ` (Last known Status: ${scratchOrgInfo.Status})`; | ||
} | ||
throw error; | ||
} | ||
} | ||
@@ -87,0 +99,0 @@ return (0, exports.checkScratchOrgInfoForErrors)(scratchOrgInfo, hubUsername); |
{ | ||
"name": "@salesforce/core", | ||
"version": "8.18.3", | ||
"version": "8.18.4", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1081501
0.04%22965
0.05%