Skip to content

Node.js based forum software built for the modern web

fix tests

barisusaklic619b850ce53
diff --git a/src/groups/update.js b/src/groups/update.js
index 95ec22753c..9bf53886e5 100644
--- a/src/groups/update.js
+++ b/src/groups/update.js
@@ -169,7 +169,7 @@ module.exports = function (Groups) {
Groups.existsBySlug(newSlug, next);
},
function (exists, next) {
- next(!exists ? new Error('[[error:group-already-exists]]') : null);
+ next(exists ? new Error('[[error:group-already-exists]]') : null);
},
], callback);
}