Fix impossible route status message
This commit is contained in:
parent
61f015eef6
commit
6dada4e347
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user