mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Merge error and fatal
This commit is contained in:
parent
e857eb1b47
commit
9ebb95c69d
7 changed files with 17 additions and 20 deletions
|
|
@ -12,7 +12,7 @@ module.exports = require('./protocols/core').extend({
|
|||
uri: 'http://'+this.options.address+':'+this.options.port+'/',
|
||||
timeout: 3000,
|
||||
}, function(e,r,body) {
|
||||
if(e) return self.error('HTTP error');
|
||||
if(e) return self.fatal('HTTP error');
|
||||
|
||||
var m = body.match(/status server for (.*?)\r|\n/);
|
||||
if(m) state.name = m[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue