From 1f8ac50950095c1a86a2e6cf1ed8263154da1e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Tue, 9 Jul 2019 22:50:28 +0200 Subject: [PATCH] Better error message for statisticsExporter --- sharedPlugins/statisticsExporter/masterPlugin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sharedPlugins/statisticsExporter/masterPlugin.js b/sharedPlugins/statisticsExporter/masterPlugin.js index 89b1a97b..7a5da91e 100644 --- a/sharedPlugins/statisticsExporter/masterPlugin.js +++ b/sharedPlugins/statisticsExporter/masterPlugin.js @@ -50,7 +50,10 @@ class masterPlugin { console.log(e) }; } else { - res.send("failure"); + res.send({ + ok:false, + msg:"Invalid request parameters" + }); } }); }