From 0bccad05f8eaa925f05a07bfefcf9416c7e32a59 Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Fri, 1 Aug 2025 12:30:12 +0200
Subject: [PATCH] Added error message to node registration
---
src/helper/childRegistrationUtils.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/helper/childRegistrationUtils.js b/src/helper/childRegistrationUtils.js
index 3ba661a..532e414 100644
--- a/src/helper/childRegistrationUtils.js
+++ b/src/helper/childRegistrationUtils.js
@@ -237,9 +237,7 @@ class ChildRegistrationUtils {
if (this.mainClass?.upstreamReactor){
this.mainClass.upstreamReactor = reactor; // Add reactor to the main class
this.logger.info(`Upstream reactor registered successfully.`);
- }
-
- if (this.mainClass?.reactors) {
+ } else if (this.mainClass?.reactors) {
if (positionVsParent == "downstream") {
this.mainClass.reactors[0] = reactor;
}
@@ -247,6 +245,8 @@ class ChildRegistrationUtils {
this.mainClass.reactors[1] = reactor;
}
this.logger.info(`Reactor registered successfully.`);
+ } else {
+ this.logger.error(`Reactor not registered!`)
}
reactor.emitter.on("stateChange", (data) => {