This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-384
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-384 by this push:
new 4a8589a Fix for NLPCRAFT-418
4a8589a is described below
commit 4a8589ab8c891c298aa6a9866ceb3013dd57d340
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Aug 17 16:16:45 2021 -0700
Fix for NLPCRAFT-418
---
.../org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala
index e0febb3..4f93936 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala
@@ -54,6 +54,13 @@ object NCModelManager extends NCService {
logger.info(s"Models deployed: ${data.size}")
+ if (data.isEmpty) {
+ logger.error(s"To start the probe provide $BO${R}at least one
model:$RST")
+ logger.error(" +-- Check probe configuration ('probe.conf'
file) or -DNLPCRAFT_TEST_MODELS system property if using embedded probe.")
+
+ throw new NCE(s"Probe requires at least one model deployed to
start.")
+ }
+
data.values.foreach(pm => {
val mdl = pm.model