diff --git a/commands/sandbox/create.ts b/commands/sandbox/create.ts index 18e304a68..33dbb1314 100644 --- a/commands/sandbox/create.ts +++ b/commands/sandbox/create.ts @@ -79,7 +79,6 @@ exports.handler = async options => { // Check usage limits and exit if parent portal has no available sandboxes for the selected type try { - console.log('validate usage limit'); await validateSandboxUsageLimits(accountConfig, sandboxType, env); } catch (err) { if (isMissingScopeError(err)) { diff --git a/lib/sandboxes.ts b/lib/sandboxes.ts index 458e1adbc..feb561dd8 100644 --- a/lib/sandboxes.ts +++ b/lib/sandboxes.ts @@ -96,14 +96,14 @@ export async function validateSandboxUsageLimits( const accountId = getAccountId(id); if (!accountId) { - throw new Error(`${i18nKey}.create.failure.usageLimitFetch`); + throw new Error(i18n(`${i18nKey}.create.failure.usageLimitFetch`)); } const { data: { usage }, } = await getSandboxUsageLimits(accountId); if (!usage) { - throw new Error(`${i18nKey}.create.failure.usageLimitFetch`); + throw new Error(i18n(`${i18nKey}.create.failure.usageLimitFetch`)); } if (sandboxType === HUBSPOT_ACCOUNT_TYPES.DEVELOPMENT_SANDBOX) { if (usage['DEVELOPER'].available === 0) {