diff --git a/src/api_productions.ts b/src/api_productions.ts index 2914c64..af312c9 100644 --- a/src/api_productions.ts +++ b/src/api_productions.ts @@ -733,8 +733,8 @@ const apiProductions: FastifyPluginCallback = ( .send({ sessionId, sdp: sdpOffer }); } else { reply.code(400).send({ - message: 'Could not establish a media connection', - stackTrace: 'Failed to generate sdp offer for endpoint' + message: + 'Could not establish a media connection: failed to generate sdp offer for endpoint' }); return; } diff --git a/src/models.ts b/src/models.ts index b38f1ea..3efa3dd 100644 --- a/src/models.ts +++ b/src/models.ts @@ -320,8 +320,7 @@ export const SdpAnswer = Type.Object({ }); export const ErrorResponse = Type.Object({ - message: Type.String(), - stackTrace: Type.Optional(Type.String()) + message: Type.String() }); export const ShareRequest = Type.Object({