From b39cfbc6a4e6a126df960da0302ecf3d5b9c3cca Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 3 Apr 2023 18:47:22 +0200 Subject: [PATCH] Removed additional debug information from the nodes route --- server/routes/nodes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/nodes.js b/server/routes/nodes.js index 24dbaafe..d7561ad8 100644 --- a/server/routes/nodes.js +++ b/server/routes/nodes.js @@ -50,8 +50,8 @@ app.get("/:nodeId/*", async (req, res) => { body: req.method === "GET" ? undefined : req.body }).then(async api => { res.status(api.status).json(await api.json()); - }).catch(err => { - res.status(500).json({message: "Internal server error", err}); + }).catch(() => { + res.status(500).json({message: "Internal server error"}); }); });