diff --git a/src/commands/deploy.mjs b/src/commands/deploy.mjs index 39e7a1c..1b88158 100644 --- a/src/commands/deploy.mjs +++ b/src/commands/deploy.mjs @@ -139,7 +139,12 @@ export default defineCommand({ } }).catch((err) => { spinner.fail(`Failed to deploy ${colors.blue(linkedProject.slug)} to ${deployEnvColored}.`) - consola.error(err.message.split('Error: ')[1]) + // Error with workers size limit + if (err.message.includes('Error: ')) { + consola.error(err.message.split('Error: ')[1]) + } else { + consola.error(err.message.split(' - ')[1] || err.message) + } process.exit(1) }) spinner.succeed(`Deployed ${colors.blue(linkedProject.slug)} to ${deployEnvColored}...`)