fix(websockets): change error message on unknown errors

This commit is contained in:
Karol Sójko
2023-12-05 14:58:48 +01:00
parent 6bdb524489
commit 79ae07623f

View File

@@ -45,9 +45,9 @@ export class SendMessageToClient implements UseCaseInterface<void> {
}
} catch (error) {
return Result.fail(
`Could not send message to connection ${connection.props.connectionId} for user ${userUuid.value}. Error: ${
(error as Error).message
}`,
`Could not send message to connection ${connection.props.connectionId} for user ${
userUuid.value
}. Error: ${JSON.stringify(error)}`,
)
}
}