Skip to content

Commit

Permalink
added 500 error response
Browse files Browse the repository at this point in the history
  • Loading branch information
noelzappy committed Feb 2, 2023
1 parent e7eb53e commit ca0348b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/message.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const handler = async (message: Message, p: any) => {
Logger.error(`Failed to send message to ChatGPT API: ` + error);

const sendErrorResponse = JSON.stringify(error).includes(
"429" || "404"
"429" || "404" || "500"
);
if (sendErrorResponse) {
message.reply(
Expand Down

0 comments on commit ca0348b

Please sign in to comment.