Skip to content

Commit

Permalink
add TODO: for server error side
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed Jan 21, 2024
1 parent afdf580 commit dd41238
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function PUT(
const { lang, msgId, projectName } = context.params;
const payload = await req.json();
const { text } = payload;
// TODO: include getProjectConfig & readFromDir in a try/catch block and check for error to return a certain 500 error
const serverProjectConfig = await ServerConfig.getProjectConfig(projectName);
const lyraConfig = await LyraConfig.readFromDir(serverProjectConfig.repoPath);

Expand Down

0 comments on commit dd41238

Please sign in to comment.