Skip to content

Commit f29ced5

Browse files
committed
handle "PROBLEMS" HAFAS error code
1 parent b12d235 commit f29ced5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/errors.js

+7
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ const byErrorCode = Object.assign(Object.create(null), {
109109
shouldRetry: true,
110110
},
111111
},
112+
PROBLEMS: {
113+
Error: HafasServerError,
114+
message: 'an unknown problem occured during search',
115+
props: {
116+
shouldRetry: true,
117+
},
118+
},
112119
LOCATION: {
113120
Error: HafasNotFoundError,
114121
message: 'location/stop not found',

0 commit comments

Comments
 (0)