diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,7 +52,8 @@ function handle_application_command(state, data, channel_id) { default: console.error(`unknown command: ${name}`); - return res.status(400).json({ error: "unknown command" }); + if (res) return res.status(400).json({ error: "unknown command" }); + else return null; } } |