test(cloudfunc) add throw

This commit is contained in:
coderaiser 2014-05-28 10:59:34 -04:00
parent 73a40d15f7
commit 04704cd260

View file

@ -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];