mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
fix: add logging on executionError validation failure
Log validation errors to help debug schema mismatches with backend. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -341,7 +341,14 @@ export class TaskItemImpl {
|
||||
for (const entry of messages) {
|
||||
if (entry[0] === 'execution_error') {
|
||||
const parsed = zExecutionErrorWsMessage.safeParse(entry[1])
|
||||
return parsed.success ? parsed.data : undefined
|
||||
if (!parsed.success) {
|
||||
console.warn(
|
||||
'[TaskItemImpl.executionError] Validation failed:',
|
||||
parsed.error
|
||||
)
|
||||
return undefined
|
||||
}
|
||||
return parsed.data
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
|
||||
Reference in New Issue
Block a user