diff --git a/test/lib/cloudfunc.js b/test/lib/cloudfunc.js index 07ccadc2..3f79b9be 100644 --- a/test/lib/cloudfunc.js +++ b/test/lib/cloudfunc.js @@ -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];