diff options
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/flexible_ngram.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/flexible_ngram.h b/src/storage/flexible_ngram.h index 3fa452d..9b08a0d 100644 --- a/src/storage/flexible_ngram.h +++ b/src/storage/flexible_ngram.h @@ -25,6 +25,7 @@ #define FLEXIBLE_NGRAM_H #include <db.h> +#include <errno.h> /* Note: the signature of the template parameters. * struct MagicHeader, ArrayHeader, ArrayItem. @@ -367,7 +368,7 @@ public: if ( ret != DB_NOTFOUND ){ fprintf(stderr, "training db error, exit!"); - exit(1); + exit(EIO); } /* Cursors must be closed */ |