Skip to content

#394 - Keep the error of the process when a listener of cleverage_process.fail fails, remove the misleading debug message - #395

Merged
njoubert-cleverage merged 1 commit into
mainfrom
394
Nov 3, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
394

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #394.

  • Listener of cleverage_process.fail: ProcessManager::execute() catches an exception thrown while dispatching ProcessEvent::EVENT_PROCESS_FAILED. It logs it as an error on the process logger ("A listener of the process failure has failed", with the exception), then rethrows the error of the process. Until now, the error of the listener escaped instead, so the command, a parent process (process_executor) and Messenger lost the original ProcessFailedException. As before, the listeners after the failing one are not called (the dispatch is interrupted).
  • Debug message: removed "has error outputs but it's error strategy 'stop' implies they will never be reached" from ProcessManager::initialize(). The error branch of a task with the stop strategy is executed before the process stops, as documented in 04-advanced_workflow.md.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None. An application that relied on the exception of its cleverage_process.fail listener escaping from execute() now gets the error of the process, and the exception of the listener is logged.

🤖 Generated with Claude Code

…cess.fail fails, remove the misleading debug message on error outputs with the stop strategy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 3, 2026 09:24
@njoubert-cleverage
njoubert-cleverage merged commit 6e6f7ae into main Nov 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A listener of cleverage_process.fail replaces the error of the process; misleading debug message on error outputs with the stop strategy

1 participant