{"record":{"id":"bf9c6d6465679747","repo":"eyaltoledano/claude-task-master","slug":"message","errorCode":null,"errorMessage":"⚠️ ${message}","messagePattern":"⚠️ \\$\\{message\\}","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"apps/cli/src/commands/autopilot/shared.ts","lineNumber":125,"sourceCode":"\t\t}\n\t}\n\n\t/**\n\t * Output warning message\n\t */\n\twarning(message: string): void {\n\t\tif (this.useJson) {\n\t\t\tconsole.warn(\n\t\t\t\tJSON.stringify(\n\t\t\t\t\t{\n\t\t\t\t\t\twarning: message\n\t\t\t\t\t},\n\t\t\t\t\tnull,\n\t\t\t\t\t2\n\t\t\t\t)\n\t\t\t);\n\t\t} else {\n\t\t\tconsole.warn(chalk.yellow(`⚠️ ${message}`));\n\t\t}\n\t}\n\n\t/**\n\t * Output info message\n\t */\n\tinfo(message: string): void {\n\t\tif (this.useJson) {\n\t\t\t// Don't output info messages in JSON mode\n\t\t\treturn;\n\t\t}\n\t\tconsole.log(chalk.blue(`ℹ ${message}`));\n\t}\n}\n","sourceCodeStart":107,"sourceCodeEnd":140,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/apps/cli/src/commands/autopilot/shared.ts#L107-L140","documentation":"Human-readable branch of the autopilot shared warning() helper: when JSON mode is off, warnings print to console.warn as a yellow '⚠️ <message>' using chalk. It is informational output on stderr for non-fatal issues detected during autopilot command execution.","triggerScenarios":"Running an autopilot command without --json while execute() calls output.warning(message) for any recoverable condition (missing optional data, skipped work, degraded behavior).","commonSituations":"Interactive terminal sessions where an optional step could not complete; users mistaking the ⚠️ line for a failure when the command still succeeded.","solutions":["Read the ⚠️ text to identify the degraded condition and fix the underlying cause.","Use --json for machine-parseable warning output in scripts/CI.","Ignore if the warning describes an optional, intentionally skipped step."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Human-readable warnings are not catchable; capture stderr if you need them\nconst { stdout, stderr } = await execFilePromise('task-master', ['autopilot', '...']);\nfor (const line of stderr.split('\\n')) {\n  if (line.startsWith('⚠️')) handleWarning(line.slice(1).trim());\n}","preventionTips":["Read the ⚠️ message to fix the underlying degraded condition.","In scripts, prefer --json mode for parseable warnings (see error 702).","Treat ⚠️ lines as informational; verify success via exit code."],"tags":["cli","stderr","warning","chalk"],"backgroundTag":"structured-warning-output","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}