better message for admins

pull/1753/head
John McLear 2013-04-17 23:48:11 +01:00
parent 63b00b9010
commit bf4c86ed94
1 changed files with 1 additions and 2 deletions

View File

@ -234,8 +234,7 @@ exports.handleMessage = function(client, message)
// FIXME: A message might arrive but wont have an auth object, this is obviously bad so we should deny it // FIXME: A message might arrive but wont have an auth object, this is obviously bad so we should deny it
// Simulate using the load testing tool // Simulate using the load testing tool
if(!sessioninfos[client.id].auth){ if(!sessioninfos[client.id].auth){
console.error("Auth was never applied to a session", sessioninfos[client.id]) console.error("Auth was never applied to a session. If you are using the stress-test tool then restart Etherpad and the Stress test tool.")
client.json.send({accessStatus: "deny"});
callback(); callback();
}else{ }else{
var auth = sessioninfos[client.id].auth; var auth = sessioninfos[client.id].auth;