Skip to content

Commit 3b6cfe7

Browse files
authored
convert.py : clarifying error message (#2718)
1 parent 800c963 commit 3b6cfe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def load_vocab(path: Path, vocabtype: Optional[str]) -> Union[BpeVocab, Sentence
964964
path = path3
965965
else:
966966
raise FileNotFoundError(
967-
f"Could not find tokenizer.model in {path} or its parent; "
967+
f"Could not find {vocab_file} in {path} or its parent; "
968968
"if it's in another directory, pass the directory as --vocab-dir")
969969

970970
print(f"Loading vocab file '{path}', type '{vocabtype}'")

0 commit comments

Comments
 (0)