You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/10/14 03:25:12 UTC
[incubator-nlpcraft] 03/23: Update NCCli.scala
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 <ar...@datalingvo.com>
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