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 2021/12/28 19:27:47 UTC

[incubator-nlpcraft] branch master updated: Update NCUtils.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


The following commit(s) were added to refs/heads/master by this push:
     new 2793cdf  Update NCUtils.scala
2793cdf is described below

commit 2793cdf83f787deda094380578d9ee5d65523cf5
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Tue Dec 28 11:27:38 2021 -0800

    Update NCUtils.scala
---
 .../src/main/scala/org/apache/nlpcraft/internal/util/NCUtils.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/util/NCUtils.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/util/NCUtils.scala
index 5b9bd32..b756e63 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/util/NCUtils.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/util/NCUtils.scala
@@ -872,7 +872,7 @@ object NCUtils extends LazyLogging:
             try
                 Using.resource(Source.fromInputStream(getStream(res), enc))(_.getLines()).toList
             catch
-                case e: IOException => throw new NCException(s"Failed to read stream.", e)
+                case e: IOException => throw new NCException(s"Failed to read stream: $res", e)
     
         log.trace(s"Loaded resource: $res")
 
@@ -899,7 +899,7 @@ object NCUtils extends LazyLogging:
             try
                 Using.resource(Source.fromInputStream(new GZIPInputStream(getStream(res)), enc))(readLcTrimFilter)
             catch
-                case e: IOException => throw new NCException(s"Failed to read stream.", e)
+                case e: IOException => throw new NCException(s"Failed to read stream: $res", e)
 
         log.trace(s"Loaded resource: $res")