@hubspot/cli 7.4.1-experimental.0 → 7.4.3-experimental.0
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.
- package/lib/app/migrate.js +1 -1
- package/lib/errorHandlers/index.js +1 -1
- package/package.json +1 -1
package/lib/app/migrate.js
CHANGED
|
@@ -113,7 +113,7 @@ async function handleMigrationSetup(derivedAccountId, options) {
|
|
|
113
113
|
}
|
|
114
114
|
const projectName = name ||
|
|
115
115
|
(await (0, promptUtils_1.inputPrompt)((0, lang_1.i18n)('commands.project.subcommands.migrateApp.prompt.inputName')));
|
|
116
|
-
const { projectExists } = await (0, projects_1.ensureProjectExists)(derivedAccountId, projectName, {
|
|
116
|
+
const { projectExists } = await (0, projects_1.ensureProjectExists)(derivedAccountId, projectName, { allowCreate: false, noLogs: true });
|
|
117
117
|
if (projectExists) {
|
|
118
118
|
throw new Error((0, lang_1.i18n)('commands.project.subcommands.migrateApp.errors.projectAlreadyExists', {
|
|
119
119
|
projectName,
|
|
@@ -27,7 +27,7 @@ function logError(error, context) {
|
|
|
27
27
|
if ((0, index_1.isHubSpotHttpError)(error) && context) {
|
|
28
28
|
error.updateContext(context);
|
|
29
29
|
}
|
|
30
|
-
if ((0, index_1.isHubSpotHttpError)(error)
|
|
30
|
+
if ((0, index_1.isHubSpotHttpError)(error)) {
|
|
31
31
|
logger_1.logger.error(error.formattedValidationErrors());
|
|
32
32
|
}
|
|
33
33
|
else if (isErrorWithMessageOrReason(error)) {
|
package/package.json
CHANGED