mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
test(cloudfunc) add throw
This commit is contained in:
parent
73a40d15f7
commit
04704cd260
1 changed files with 3 additions and 3 deletions
|
|
@ -52,9 +52,9 @@
|
|||
files.read(Files, 'utf-8', function(errors, files) {
|
||||
var isNotOk, i, template, pathTemplate, pathLink, linkTemplate, expect, result;
|
||||
|
||||
if (errors)
|
||||
Util.log(errors);
|
||||
else {
|
||||
if (errors) {
|
||||
throw(console.log(errors));
|
||||
} else {
|
||||
Util.time('CloudFunc.buildFromJSON');
|
||||
|
||||
template = files[TEMPLATEPATH];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue