Fix impossible route status message

This commit is contained in:
Patrick Niklaus 2015-11-18 22:21:50 +01:00
parent 61f015eef6
commit 6dada4e347
2 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@ Feature: Status messages
| from | to | route | status | message |
| a | b | ab | 0 | Found route between points |
| c | d | cd | 0 | Found route between points |
| a | c | | 207 | Cannot find route between points |
| b | d | | 207 | Cannot find route between points |
| a | c | | 207 | Impossible route between points. |
| b | d | | 207 | Impossible route between points. |
Scenario: Malformed requests
Given the node locations

View File

@ -215,7 +215,7 @@ template <class DataFacadeT> class ViaRoutePlugin final : public BasePlugin
// allow for connection in one direction.
if (!all_in_same_component && no_route)
{
json_result.values["status"] = "Impossible route";
json_result.values["status_message"] = "Impossible route between points.";
return 400;
}