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://'+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];