Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2013-11-19 17:19:23 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-19 17:19:23 +0400
commitc2c86ce50d1900db55e420dd08f38facfce50501 (patch)
tree85ca7cb5d2445dd60cd96325945e14a9626c50b7 /moses/File.h
parent90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/File.h')
-rw-r--r--moses/File.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/File.h b/moses/File.h
index 09d9ddc92..ef407d047 100644
--- a/moses/File.h
+++ b/moses/File.h
@@ -10,7 +10,7 @@
#include <cstdio>
#include <iostream>
#include <vector>
-#include "util/check.hh"
+#include "util/exception.hh"
#include "UserMessage.h"
#include "TypeDef.h"
#include "Util.h"
@@ -161,7 +161,7 @@ inline FILE* fOpen(const char* fn,const char* m)
return f;
else {
UserMessage::Add(std::string("ERROR: could not open file ") + fn + " with mode " + m + "\n");
- CHECK(false);
+ UTIL_THROW(util::Exception, "Couldn't open file " << fn);
return NULL;
}
}