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:
parent
271cfcbfb8
commit
a6d61f421b
@ -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));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user