Skip to content

Commit 31837ec

Browse files
fantesmergify[bot]
authored andcommitted
feat(torch/txt): display msg if vocab not found
1 parent 3538eb7 commit 31837ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/txtinputfileconn.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,12 @@ namespace dd
516516
if (!fileops::file_exists(vocabfname))
517517
{
518518
if (required)
519-
throw InputConnectorBadParamException("cannot find vocabulary file "
520-
+ vocabfname);
519+
{
520+
_logger->error("cannot find vocabulary file " + vocabfname);
521+
522+
throw InputConnectorBadParamException(
523+
"cannot find vocabulary file " + vocabfname);
524+
}
521525
else
522526
return;
523527
}

0 commit comments

Comments
 (0)