added error key

v1.18.x
barisusakli 11 years ago
parent 95972209f4
commit d366be7967

@ -13,7 +13,7 @@ SocketCategories.getRecentReplies = function(socket, cid, callback) {
return callback(err); return callback(err);
} }
if (privileges && !privileges.read) { if (!privileges || !privileges.read) {
return callback(null, []); return callback(null, []);
} }
@ -27,7 +27,7 @@ SocketCategories.get = function(socket, data, callback) {
SocketCategories.loadMore = function(socket, data, callback) { SocketCategories.loadMore = function(socket, data, callback) {
if(!data) { if(!data) {
return callback(new Error('invalid data')); return callback(new Error('[[error:invalid-data]]'));
} }
user.getSettings(socket.uid, function(err, settings) { user.getSettings(socket.uid, function(err, settings) {

Loading…
Cancel
Save