From 4fc4bc55e2095b3377a18d84313ef4b8fc1ab004 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Fri, 7 Jun 2024 11:00:28 +0200 Subject: [PATCH] Revert "Fix clear_error in JsExampleErrorRaiser" This reverts commit 59aa2e28699d6cde89981f485b687bb4ec15335d. --- .../examples/error-framework/JsExampleErrorRaiser/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/examples/error-framework/JsExampleErrorRaiser/index.js b/modules/examples/error-framework/JsExampleErrorRaiser/index.js index f23e22c524..95540879c0 100644 --- a/modules/examples/error-framework/JsExampleErrorRaiser/index.js +++ b/modules/examples/error-framework/JsExampleErrorRaiser/index.js @@ -138,7 +138,7 @@ boot_module(async ({ mod.provides.example_raiser.raise_error(error); check_conditions(mod); await sleep(1000); - mod.provides.example_raiser.clear_error(error.type, true); + mod.provides.example_raiser.clear_error(error.type, error.sub_type); check_conditions(mod); await sleep(1000); error = mod.provides.example_raiser.error_factory.create_error( @@ -149,7 +149,7 @@ boot_module(async ({ mod.provides.example_raiser.raise_error(error); check_conditions(mod); await sleep(1000); - mod.provides.example_raiser.clear_error(error.type, true); + mod.provides.example_raiser.clear_error(error.type, error.sub_type); check_conditions(mod); await sleep(1000); error = mod.provides.example_raiser.error_factory.create_error(