From 6a4f45371394f5420987e41f6d34ecc46ed6d6f3 Mon Sep 17 00:00:00 2001 From: vsandvold Date: Sat, 28 Jan 2017 17:29:22 +0100 Subject: [PATCH] provides a more helpful error msg when a new feature is created with an existing name --- lib/routes/feature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/feature.js b/lib/routes/feature.js index 3629dc5692..7bc5778908 100644 --- a/lib/routes/feature.js +++ b/lib/routes/feature.js @@ -20,7 +20,7 @@ const handleErrors = (req, res, error) => { case NameExistsError: return res .status(403) - .json([{ msg: `A feature named '${req.body.name}' already exists.` }]) + .json([{ msg: 'A feature with this name already exists. Try re-activating it from the archive.' }]) .end(); case ValidationError: return res