From 574634109960e7daa609214e47e66d689327bc23 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 23 Sep 2016 17:06:19 +0300 Subject: [PATCH] closes #5048 --- src/socket.io/user/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/user/status.js b/src/socket.io/user/status.js index e3411ddbf3..4bcd2b0bc9 100644 --- a/src/socket.io/user/status.js +++ b/src/socket.io/user/status.js @@ -6,7 +6,7 @@ var websockets = require('../index'); module.exports = function(SocketUser) { SocketUser.checkStatus = function(socket, uid, callback) { if (!socket.uid) { - return callback('[[error:invalid-uid]]'); + return callback(new Error('[[error:invalid-uid]]')); } user.getUserFields(uid, ['lastonline', 'status'], function(err, userData) {