From fd19449c1b981781adc44e129e460c4560f18a85 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Fri, 27 Oct 2023 18:33:06 +0100 Subject: [PATCH] Remove wiki link in 400 message --- mod/workspace/_workspace.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/workspace/_workspace.js b/mod/workspace/_workspace.js index 917ecf859..32277073a 100644 --- a/mod/workspace/_workspace.js +++ b/mod/workspace/_workspace.js @@ -22,9 +22,7 @@ module.exports = async (req, res) => { // The keys object must own a user provided lookup key if (!Object.hasOwn(keys, req.params.key)) { - return res.send(` - Failed to evaluate 'key' param.

- Workspace API`) + return res.status(400).send(`Failed to evaluate '${req.params.key}' param.`) } return keys[req.params.key](req, res)