diff --git a/gtsam/hybrid/HybridGaussianFactorGraph.cpp b/gtsam/hybrid/HybridGaussianFactorGraph.cpp index 7a7ca0cbf7..2029b48e09 100644 --- a/gtsam/hybrid/HybridGaussianFactorGraph.cpp +++ b/gtsam/hybrid/HybridGaussianFactorGraph.cpp @@ -169,10 +169,10 @@ discreteElimination(const HybridGaussianFactorGraph &factors, // TODO(dellaert): is this correct? If so explain here. } else if (auto hc = dynamic_pointer_cast(f)) { auto dc = hc->asDiscrete(); - if (!dc) throwRuntimeError("continuousElimination", dc); + if (!dc) throwRuntimeError("discreteElimination", dc); dfg.push_back(hc->asDiscrete()); } else { - throwRuntimeError("continuousElimination", f); + throwRuntimeError("discreteElimination", f); } }