refactor(files) read: errors -> error

This commit is contained in:
coderaiser 2014-06-20 09:35:53 -04:00
parent b387b65cdb
commit 320affbb38
3 changed files with 17 additions and 18 deletions

View file

@ -156,12 +156,11 @@
if (Config.ssl)
filesList.push(KEY, CERT);
files.read(filesList, 'utf8', function(errors, files) {
files.read(filesList, 'utf8', function(error, files) {
var status, msg, names;
if (errors) {
status = 'error';
Util.log(errors);
if (error) {
Util.log(error);
} else {
status = 'ok';