diff --git a/lib/platform.js b/lib/platform.js index 0462346..5ab6461 100644 --- a/lib/platform.js +++ b/lib/platform.js @@ -163,9 +163,12 @@ Platform.prototype.parseResolv = function() { fs.readFile('/etc/resolv.conf', 'ascii', function(err, file) { if (err) { + // If the file wasn't found don't worry about it. + if (err.code == 'ENOENT') { + return; + } throw err; } - file.split(/\n/).forEach(function(line) { var i, parts, subparts; line = line.replace(/^\s+|\s+$/g, '');