summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/sequence.ts
diff options
context:
space:
mode:
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",