Ops, forgot to replace two throws
parent
b9f23fa208
commit
fdeb2a45e7
|
@ -154,11 +154,13 @@ exports.handleMessage = function(client, message)
|
||||||
{
|
{
|
||||||
if(message == null)
|
if(message == null)
|
||||||
{
|
{
|
||||||
throw "Message is null!";
|
messageLogger.warn("Message is null!");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if(!message.type)
|
if(!message.type)
|
||||||
{
|
{
|
||||||
throw "Message has no type attribute!";
|
messageLogger.warn("Message has no type attribute!");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check what type of message we get and delegate to the other methodes
|
//Check what type of message we get and delegate to the other methodes
|
||||||
|
|
Loading…
Reference in New Issue