fix exception text

release/4.3a0
Duy-Nguyen Ta 2015-03-12 09:37:26 -04:00
parent bdd00d8b49
commit d8564f25e0
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public:
/** Conversion from JacobianFactor */
explicit LinearInequality(const JacobianFactor& jf, Key dualKey) : Base(jf), dualKey_(dualKey), active_(true) {
if (!jf.isConstrained()) {
throw std::runtime_error("Cannot convert an unconstrained JacobianFactor to LinearEquality");
throw std::runtime_error("Cannot convert an unconstrained JacobianFactor to LinearInequality");
}
if (jf.get_model()->dim() != 1) {