summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/training/gen_unigram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/training/gen_unigram.cpp b/utils/training/gen_unigram.cpp
index c47c6ca..e1a91fd 100644
--- a/utils/training/gen_unigram.cpp
+++ b/utils/training/gen_unigram.cpp
@@ -46,7 +46,7 @@ int main(int argc, char * argv[]){
bool retval = chunk->load(binfile);
if (!retval) {
fprintf(stderr, "load %s failed!\n", binfile);
- return false;
+ exit(ENOENT);
}
phrase_index.load(i, chunk);