Closed pocke closed 5 years ago
Thank you for raising this particular issue, @pocke.
Would you be able to provide an example of such a case, maybe wrapped up in a test case?
Would you be able to provide an example of such a case, maybe wrapped up in a test case?
Sure! I'll add a test case.
I added test cases for this in deca242.
Problem
parse_tostr
andparse_tonodes
conceal errors when not mecab error is occurred in these methods.Solution
Raise the original error if lattice strerror is empty.
Another approach
Probably specifying error class(es) in
rescue
is better approach, but I'm not sure which error classes are raised. So I gave up the approach.