aboutsummaryrefslogtreecommitdiffstats
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
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2022-09-18 23:46:16 +0200
commit3a31cda1d41e7aa21500a187503b7b637b80e435 (patch)
treed3148645804030560d5077952333e6caa4e60f47 /cds-ui/server/src/sequence.ts
parent43496fb210dd08bd934fedf2e5e1bba4636000d1 (diff)
Fix npm dependency issue for server
Issue-ID: CCSDK-3754 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Id3a43101fcb9b5c5af8d219598283cb57ea8a4d7
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",