Skip to content

Commit ddf8195

Browse files
PetervDoorenMatthijsBurgh
authored andcommitted
add more meaningful error msg
1 parent 065453d commit ddf8195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ed_sensor_integration/src/kinect/fitter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ bool Fitter::estimateEntityPoseImp(const FitterData& data, const ed::WorldModel&
285285
double error_threshold = ERROR_THRESHOLD;
286286
if (current_optimum->getError() > error_threshold)
287287
{
288-
throw FitterError("Error of best fit exceeds threshold");
288+
std::string errormsg = "Error of best fit [" + std::to_string(current_optimum->getError()) + "]exceeds threshold [" + std::to_string(error_threshold) +"]";
289+
throw FitterError(errormsg);
289290
}
290291

291292
// Correct for shape transformation

0 commit comments

Comments
 (0)