This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-206
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
new 954546d Update NCDslCompilerBase.scala
954546d is described below
commit 954546d862d1f493bf79221fdbccee195f421a63
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Mar 16 19:03:33 2021 -0700
Update NCDslCompilerBase.scala
---
.../nlpcraft/model/intent/compiler/NCDslCompilerBase.scala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
index 52c9c45..a76f9af 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompilerBase.scala
@@ -698,14 +698,14 @@ trait NCDslCompilerBase {
val parts = tok.findPartTokens(aliasId)
if (parts.isEmpty)
- throw newRuntimeError(s"Cannot find part for token (try
'parts' function instead) [" +
- s"id=${tok.getId}, " +
- s"aliasId=$aliasId" +
+ throw newRuntimeError(s"Cannot find part for token [" +
+ s"tokenId=${tok.getId}, " +
+ s"partId=$aliasId" +
s"]")
else if (parts.size() > 1)
throw newRuntimeError(s"Too many parts found for token
(use 'parts' function instead) [" +
- s"id=${tok.getId}, " +
- s"aliasId=$aliasId" +
+ s"tokenId=${tok.getId}, " +
+ s"partId=$aliasId" +
s"]")
Z(parts.get(0), f1 || f2)