mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
handle "PROBLEMS" HAFAS error code
This commit is contained in:
parent
b12d235bae
commit
f29ced5b2d
1 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,13 @@ const byErrorCode = Object.assign(Object.create(null), {
|
|||
shouldRetry: true,
|
||||
},
|
||||
},
|
||||
PROBLEMS: {
|
||||
Error: HafasServerError,
|
||||
message: 'an unknown problem occured during search',
|
||||
props: {
|
||||
shouldRetry: true,
|
||||
},
|
||||
},
|
||||
LOCATION: {
|
||||
Error: HafasNotFoundError,
|
||||
message: 'location/stop not found',
|
||||
|
|
Loading…
Add table
Reference in a new issue