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:27 UTC

[incubator-nlpcraft] 18/23: Update NCBasicRestApi.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 d7b960409a63784d9c4d4134578c7dc3c0a976aa
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Tue Oct 13 02:57:38 2020 -0700

    Update NCBasicRestApi.scala
---
 .../src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index d57acd7..126b25a 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -324,7 +324,7 @@ class NCBasicRestApi extends NCRestApi with LazyLogging with NCOpenCensusTrace w
     @throws[InvalidField]
     protected def checkModelId(mdlId: String, compId: Long): Unit =
         if (!NCProbeManager.existsForModel(compId, mdlId))
-            throw InvalidModelId("mdlId")
+            throw InvalidModelId(mdlId)
 
     /**
       * Checks length of field value.