mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-09-28 20:15:56 +00:00
show error in newline
This commit is contained in:
parent
11b042a8c3
commit
9cafc6f794
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user