Skip to content

Commit

Permalink
replace sending message
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Oct 15, 2024
1 parent adb1dd7 commit bea105e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/app/src/features/openai/server/routes/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export const postMessageHandlersFactory: PostMessageHandlersFactory = (crowi) =>
}
catch (err) {
logger.error(err);
return res.status(500).send(err);

// TODO: improve error handling by https://redmine.weseek.co.jp/issues/155304
return res.status(500).send(err.message);
}

res.writeHead(200, {
Expand Down

0 comments on commit bea105e

Please sign in to comment.