fix: Add missing error causes

This commit is contained in:
Joachim Van Herwegen
2023-07-25 14:24:45 +02:00
parent f373dff1d7
commit 7505f07f2f
4 changed files with 9 additions and 5 deletions

View File

@@ -100,7 +100,8 @@ export class NotificationSubscriber extends OperationHttpHandler {
});
channel = await this.channelType.initChannel(await readableToQuads(quadStream.data), credentials);
} catch (error: unknown) {
throw new UnprocessableEntityHttpError(`Unable to process notification channel: ${createErrorMessage(error)}`);
throw new UnprocessableEntityHttpError(`Unable to process notification channel: ${createErrorMessage(error)}`,
{ cause: error });
}
if (this.maxDuration) {