This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 100dab4 Update NCIdlCompiler.scala
100dab4 is described below
commit 100dab4e60e19cf97bc80c1ff4aa39a354596dce
Author: Aaron Radzinski <[email protected]>
AuthorDate: Mon Mar 22 20:07:30 2021 -0700
Update NCIdlCompiler.scala
---
.../scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompiler.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompiler.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompiler.scala
index d27133c..7e24d46 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompiler.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompiler.scala
@@ -132,7 +132,7 @@ object NCIdlCompiler extends LazyLogging {
val varName = ctx.id().getText
if (!vars.contains(varName))
- throw newSyntaxError(s"Unknown variable: @$varName")(ctx)
+ throw newSyntaxError(s"Undefined variable: @$varName")(ctx)
val instr: SI = (tok: NCToken, stack: S, idlCtx: NCIdlContext) ⇒
stack.push(() ⇒ idlCtx.vars(varName)(tok, idlCtx))