-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add error when we fail to find any connection in matrix #4718
Conversation
if (std::all_of(request.matrix().times().begin(), request.matrix().times().end(), | ||
[](const float& time) { return time == kMaxCost; })) { | ||
throw valhalla_exception_t(442); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put this check in the serializer so there's no additional code needed in every algorithm and/or so we don't have to add extra logic to handle second passes. the code is the same as for /route when no route is found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to throw in case of expansion action? could still be of use when debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But there’s no info at all if nothing is found, I don’t see how that can be useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sorry, I thought there'd be an actual expansion still in that case
fixes #4715