mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
refactor(files) read: errors -> error
This commit is contained in:
parent
b387b65cdb
commit
320affbb38
3 changed files with 17 additions and 18 deletions
|
|
@ -61,13 +61,13 @@
|
|||
})
|
||||
.concat(EXPECT_PATH);
|
||||
|
||||
files.read(filesList, 'utf8', function(errors, files) {
|
||||
files.read(filesList, 'utf8', function(error, files) {
|
||||
var isNotOk, expect, result,
|
||||
i = 0,
|
||||
template = {};
|
||||
|
||||
if (errors) {
|
||||
throw(console.log(errors));
|
||||
if (error) {
|
||||
throw(new Error(error));
|
||||
} else {
|
||||
Util.time('CloudFunc.buildFromJSON');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue