summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/sequence.ts
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2022-09-18 23:41:04 +0200
committerKAPIL SINGAL <ks220y@att.com>2022-09-18 23:44:32 +0000
commitdd08f42fb1e301ee5f9a0b43873d8e3fdad831d3 (patch)
tree88978bb86a236a839c89feb1360276493f2791e3 /cds-ui/server/src/sequence.ts
parentea457a94cda951ff17b84b107be0b96a4537fabc (diff)
Fix npm dependency issue for server1.3.1
Issue-ID: CCSDK-3754 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Id3a43101fcb9b5c5af8d219598283cb57ea8a4d7 (cherry picked from commit 3a31cda1d41e7aa21500a187503b7b637b80e435)
Diffstat (limited to 'cds-ui/server/src/sequence.ts')
-rw-r--r--cds-ui/server/src/sequence.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/cds-ui/server/src/sequence.ts b/cds-ui/server/src/sequence.ts
index 84da5249d..ab796a539 100644
--- a/cds-ui/server/src/sequence.ts
+++ b/cds-ui/server/src/sequence.ts
@@ -55,8 +55,10 @@ export class MySequence implements SequenceHandler {
const args = await this.parseParams(request, route);
const result = await this.invoke(route, args);
this.send(response, result);
- } catch (err) {
- this.reject(context, err);
+ } catch (err: unknown) {
+ if (err instanceof Error) {
+ this.reject(context, err);
+ }
} finally {
const { authorization, ...headers} = request.headers;
logger.info("Incoming request from %s %s and with header %s query %s params %s and response code: %s",