Compare commits
1 Commits
7ff7c6ec1d
...
06251988af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06251988af |
@@ -57,7 +57,7 @@ class nodeClass {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
console.log("Unknown topic: " + msg.topic);
|
this.source.logger.warn(`Unknown topic: ${msg.topic}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (done) {
|
if (done) {
|
||||||
@@ -129,7 +129,7 @@ class nodeClass {
|
|||||||
new_reactor = new Reactor_PFR(this.config);
|
new_reactor = new Reactor_PFR(this.config);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.warn("Unknown reactor type: " + this.config.reactor_type);
|
throw new Error(`Unknown reactor type: ${this.config.reactor_type}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.source = new_reactor; // protect from reassignment
|
this.source = new_reactor; // protect from reassignment
|
||||||
|
|||||||
Reference in New Issue
Block a user