more error strings

This commit is contained in:
barisusakli
2014-04-09 21:56:30 -04:00
parent fdeaf3a16e
commit 0ac58dbee6
6 changed files with 45 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ topicsController.get = function(req, res, next) {
}
if (!userPrivileges.read) {
return next(new Error('not-enough-privileges'));
return next(new Error('[[error:no-privileges]]'));
}
privileges = userPrivileges;
@@ -45,7 +45,7 @@ topicsController.get = function(req, res, next) {
topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {
if (topicData) {
if (parseInt(topicData.deleted, 10) === 1 && parseInt(topicData.expose_tools, 10) === 0) {
return next(new Error('Topic deleted'));
return next(new Error('[[error:no-topic]]'));
}
topicData.currentPage = page;
}