Merge error and fatal

This commit is contained in:
Michael Morrison 2014-02-02 05:58:36 -06:00
parent e857eb1b47
commit 9ebb95c69d
7 changed files with 17 additions and 20 deletions

View file

@ -12,7 +12,7 @@ module.exports = require('./protocols/core').extend({
uri: 'http://mutantfactions.net/game/receiveLobby.php',
timeout: 3000,
}, function(e,r,body) {
if(e) return self.error('Lobby request error');
if(e) return self.fatal('Lobby request error');
var split = body.split('<br/>');