From b0c18e7baec3f0b70ba3c6354fae0c4df26cf3db Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Tue, 23 Sep 2025 15:11:06 +0200 Subject: [PATCH] added warning when model is not specified so user knows. --- src/specificClass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specificClass.js b/src/specificClass.js index cf38f5f..614f77d 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -71,7 +71,7 @@ class Machine { this.config = this.configUtils.updateConfig(this.config, {general:{name: this.config.functionality?.softwareType + "_" + machineConfig.general.id}}); // add unique name if not present if (!this.model || !this.curve) { - this.logger.warn(`${!this.model ? 'Model not specified' : 'Curve not found for model ' + this.model} in machineConfig. Cannot make predictions.`); + this.logger.error(`${!this.model ? 'Model not specified' : 'Curve not found for model ' + this.model} in machineConfig. Cannot make predictions.`); // Set prediction objects to null to prevent method calls this.predictFlow = null; this.predictPower = null;