refactor(config) {} -> Error

This commit is contained in:
coderaiser 2014-11-24 10:15:24 -05:00
parent 75b9ff94ac
commit 9f119eff89

View file

@ -58,9 +58,7 @@
if (data)
fs.writeFile(ConfigHome, data, callback);
else
callback({
message: 'Error: config is empty!'
});
callback(Error('Config is empty!'));
}
function socket(sock) {