mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
AbstractHafasClientInterfaceProvider: always interpret FAIL
error as service down
This commit is contained in:
parent
dabbebe002
commit
d55e4027f1
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
if ("H9380".equals(err)) // Departure/Arrival/Intermediate or equivalent stations def'd more
|
||||
// than once.
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE);
|
||||
if ("FAIL".equals(err) && "HCI Service: request failed".equals(errTxt))
|
||||
if ("FAIL".equals(err))
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
|
||||
if ("PROBLEMS".equals(err) && "HCI Service: problems during service execution".equals(errTxt))
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue