1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Merge pull request #206 from Unleash/fix-existing-feature-error-msg

provides a more helpful error msg when a new feature is created with …
This commit is contained in:
Ivar Conradi Østhus 2017-01-29 08:14:17 +01:00 committed by GitHub
commit 97a484bb20

View File

@ -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