This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/clucene by this push:
     new 5dd6fca3 [fix](jieba) Dictionary opening failure cause output log 
(#102)
5dd6fca3 is described below

commit 5dd6fca31d1a0226a29abfea7c03c9694401ec32
Author: zzzxl <33418555+zzzxl1...@users.noreply.github.com>
AuthorDate: Wed Jul 19 11:24:54 2023 +0800

    [fix](jieba) Dictionary opening failure cause output log (#102)
---
 src/contribs-lib/CLucene/analysis/jieba/DictTrie.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/contribs-lib/CLucene/analysis/jieba/DictTrie.hpp 
b/src/contribs-lib/CLucene/analysis/jieba/DictTrie.hpp
index 1d2ad3f9..bac0f556 100644
--- a/src/contribs-lib/CLucene/analysis/jieba/DictTrie.hpp
+++ b/src/contribs-lib/CLucene/analysis/jieba/DictTrie.hpp
@@ -209,7 +209,7 @@ class DictTrie {
 
   void LoadDict(const string& filePath) {
     ifstream ifs(filePath.c_str());
-    XCHECK(ifs.is_open()) << "open " << filePath << " failed.";
+    XCHECK(ifs.is_open()) << "open " << filePath << " failed. " << 
strerror(errno);
     string line;
     vector<string> buf;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to