diff --git a/lib/syskit/network_generation/async.rb b/lib/syskit/network_generation/async.rb index 9325b7c3f..d479885dd 100644 --- a/lib/syskit/network_generation/async.rb +++ b/lib/syskit/network_generation/async.rb @@ -144,6 +144,12 @@ def apply rescue ::Exception => e engine.handle_resolution_exception(e, on_error: Engine.on_error) raise e + ensure + resolution_errors = + engine.replace_resolution_errors_tasks(resolution_errors) + resolution_errors.each do |error| + plan.execution_engine.add_error(error) + end end else engine.handle_resolution_exception(