diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-01-13 22:32:22 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-01-13 22:32:22 +0400 |
commit | fccf2ea43a7ff0846dbb1bf77df32b7d85186e63 (patch) | |
tree | 97f95116d5e0ad2263fe3b03b93d1c0295554c6c /moses/HypothesisStackNormal.cpp | |
parent | b5558c36b85177bf282cb88edd3b899872b7a9b9 (diff) |
get rid of all aborts from decoder
Diffstat (limited to 'moses/HypothesisStackNormal.cpp')
-rw-r--r-- | moses/HypothesisStackNormal.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/HypothesisStackNormal.cpp b/moses/HypothesisStackNormal.cpp index 8e9dd6cfa..b1ca49583 100644 --- a/moses/HypothesisStackNormal.cpp +++ b/moses/HypothesisStackNormal.cpp @@ -136,8 +136,7 @@ bool HypothesisStackNormal::AddPrune(Hypothesis *hypo) bool added = Add(hypo).second; if (!added) { iterExisting = m_hypos.find(hypo); - TRACE_ERR("Offending hypo = " << **iterExisting << endl); - abort(); + UTIL_THROW2("Offending hypo = " << **iterExisting); } return false; } else { |