This commit is contained in:
Baris Soner Usakli
2014-01-27 20:21:14 -05:00
parent 5759b1b1a2
commit ed401de169
2 changed files with 14 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ SocketPosts.reply = function(socket, data, callback) {
type: 'danger',
timeout: 2000
});
return;
return callback(new Error('not-logged-in'));
}
if(!data || !data.topic_id || !data.content) {