diff --git a/src/commands/print/update.ts b/src/commands/print/update.ts index 417a160..97df7c8 100644 --- a/src/commands/print/update.ts +++ b/src/commands/print/update.ts @@ -96,7 +96,10 @@ export function buildPrintUpdateCommand(): Command { if (Object.keys(toValidate).length > 0) { const v = validatePrintCreate(toValidate as Parameters[0]) if (!v.ok) { - for (const err of v.errors) log.error(` ${err.message}`) + // 遍历所有 step 收集错误 + for (const step of v.steps) { + for (const err of step.errors) log.error(` [${step.stepName}] ${err.message}`) + } process.exit(1) } }