Skip to content

Commit

Permalink
fix: replace unreachable by a warning to avoid killing the app becaus…
Browse files Browse the repository at this point in the history
…e of some rounding errors
  • Loading branch information
sebcrozet committed Apr 28, 2024
1 parent e62e361 commit f3b4918
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,15 @@ where
break;
}
}
ClosestPoints::Disjoint => unreachable!(),
ClosestPoints::Disjoint => {
// TODO: this case should be unreachable and needs some debugging
// see: https://github.com/dimforge/parry/issues/176
log::error!(
"Closest points not found despite setting the max distance to infinity."
);
result.status = TOIStatus::Failed;
break;
}
}
}

Expand Down

0 comments on commit f3b4918

Please sign in to comment.