@salesforce/core 3.31.8 → 3.31.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,6 +218,9 @@ const checkOrgDoesntExist = async (scratchOrgInfo) => {
|
|
|
218
218
|
* @returns {Promise<SaveResult>}
|
|
219
219
|
*/
|
|
220
220
|
const requestScratchOrgCreation = async (hubOrg, scratchOrgRequest, settings) => {
|
|
221
|
+
if (!hubOrg.isDevHubOrg()) {
|
|
222
|
+
throw messages.createError('hubOrgIsNotDevHub', [hubOrg.getUsername(), hubOrg.getOrgId()]);
|
|
223
|
+
}
|
|
221
224
|
// If these were present, they were already used to initialize the scratchOrgSettingsGenerator.
|
|
222
225
|
// They shouldn't be submitted as part of the scratchOrgInfo.
|
|
223
226
|
delete scratchOrgRequest.settings;
|
|
@@ -13,3 +13,7 @@ We've deprecated OrgPreferences. Update the scratch org definition file to repla
|
|
|
13
13
|
# SourceStatusResetFailureError
|
|
14
14
|
|
|
15
15
|
Successfully created org with ID: %s and name: %s. Unfortunately, source tracking isn’t working as expected. If you run force:source:status, the results may be incorrect. Try again by creating another scratch org.
|
|
16
|
+
|
|
17
|
+
# hubOrgIsNotDevHub
|
|
18
|
+
|
|
19
|
+
Make sure that the org with username %s and ID %s is enabled as a Dev Hub. To enable it, open the org in your browser, navigate to the Dev Hub page in Setup, and click Enable.
|