Skip to content

Commit

Permalink
Potential fix for code scanning alert no. 37: Information exposure th…
Browse files Browse the repository at this point in the history
…rough a stack trace

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 7dd098a commit f2bd855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions express/backend/src/api/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ router.get("/api/adapter/:name/stats/now", async function (req, res) {
res.send(versions);
} catch (error: any) {
console.error(error);
res.status(500).send(error.message || error);
res.status(500).send("An unexpected error occurred");
}
});

Expand Down Expand Up @@ -112,7 +112,7 @@ router.get("/api/adapter/:name/stats/history", async function (req, res) {
res.send(result);
} catch (error: any) {
console.error(error);
res.status(500).send(error.message || error);
res.status(500).send("An unexpected error occurred");
}
});

Expand Down

0 comments on commit f2bd855

Please sign in to comment.