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

commit 387f0997e1fbf2aff126ac26616d3ad6fb576fd5
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Oct 9 18:12:33 2020 -0700

    Update NCCli.scala
---
 .../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 7e514c2..2840ac6 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -1382,7 +1382,7 @@ object NCCli extends App {
         if (!U.isValidJson(rawJson))
             throw MalformedJson()
 
-        if (!REST_PATHS.exists(_._1 == path))
+        if (!REST_PATHS.exists(_.path == path))
             throw new IllegalArgumentException(s"Unknown REST path 
$C'$path'$RST, type ${c("'help --cmd=rest'")} to get help.")
 
         val endpoint = getRestEndpointFromBeacon

Reply via email to