1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01:00

fix(strategy): Correct error message

This commit is contained in:
ivaosthu 2018-12-05 08:29:31 +01:00 committed by Ivar Conradi Østhus
parent 271cfcbfb8
commit a6d61f421b

View File

@ -102,7 +102,7 @@ exports.router = function(config) {
strategyStore strategyStore
.getStrategy(data.name) .getStrategy(data.name)
.then(() => .then(() =>
reject(new NameExistsError('Feature name already exist')) reject(new NameExistsError('Strategy already exist!'))
) )
.catch(() => resolve(data)); .catch(() => resolve(data));
}); });