mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Eradicating CHECK
This commit is contained in:
parent
c4ec78b817
commit
9af5c12aa2
@ -51,6 +51,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "Manager.h"
|
||||
#include "StaticData.h"
|
||||
|
||||
#include "util/exception.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
@ -68,7 +69,7 @@ public:
|
||||
/** Add a parameter with key, command line argument, and default value */
|
||||
void addParam(gridkey key, const string& arg, float defaultValue) {
|
||||
m_args[arg] = key;
|
||||
CHECK(m_grid.find(key) == m_grid.end());
|
||||
UTIL_THROW_IF2(m_grid.find(key) != m_grid.end(), "Duplicate parameter " << arg);
|
||||
m_grid[key].push_back(defaultValue);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user