show error in newline

This commit is contained in:
Max Kammler 2023-02-08 10:12:23 +01:00 committed by bertybuttface
parent 11b042a8c3
commit 9cafc6f794

View File

@ -125,7 +125,7 @@ export default class CommandHandler {
const result = await sendChatGPTMessage(this.chatGPT, await bodyWithoutPrefix, storedConversation)
.catch((error) => {
LogService.warn(`OpenAPI Error: ${error}`);
sendError(this.client, "Sorry, there was an error using the OpenAI-API. Details: " + error, roomId, event.event_id);
sendError(this.client, `Sorry, there was an error using the OpenAI-API. Details:\n${error}`, roomId, event.event_id);
return;
});
await Promise.all([