Open mikwebdev opened 6 years ago
@mikwebdev Thank you for reporting this. I'll have a look at it ASAP.
@f03el Thank you. Much appreciated as I still use Fahrplan on my Nokia N9 regularly.
The reply from the server is just an empty JSON object (i.e. {}
) when the direction station is not part of any route from the departure station. Would it make more sense to just show an empty result list instead of the error message?
Yes, an empty result list is much better than an loading squircle and error message.
With constant loading squircle and error message it gives the impression that something is technically wrong. Maybe change error message to something like "No departures found." or "No results found." and stop the loading squircle?
I have attached an error message from rejseplanen.dk. Maybe do something similar?
For example: Sweden (resrobot.se) replied: "No departures found to that direction." or Sweden (resrobot.se) replied: "No results found."
OK, I think an empty result list is the only possible solution in this case. There is no way we can know whether the reply is empty just because there simply are no departures from that station at the time, or because the user has selected a "bad" combination of station and direction. If you want to test a bus stop with no departures, try "Granträskvägen (Lycksele kn)" in the weekend. :)
The backend only has the options to either return a list of departures (special case: empty list), or throw an exception, which shows an error message (in the N9 case with a loading circle). The loading circle is nothing the backend controls. On Sailfish OS there is no indicator or similar in this case. It just shows the error message.
Ok, I understand. I'm fine with an empty list, as long as loading squircle and error message doesn't show.
[Affected versions]:
[Affected platforms]:
[Steps to reproduce]:
[Expected result]:
[Actual result]:
[Notes]: