From f29ced5b2de5726ffab307254a11fc8b9956f8a8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 7 Dec 2023 00:55:35 +0100 Subject: [PATCH] handle "PROBLEMS" HAFAS error code --- lib/errors.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/errors.js b/lib/errors.js index 4e197b82..b11f2259 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -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',