From 04704cd2601080922e5ab5038cfb6d875d1e1b97 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 28 May 2014 10:59:34 -0400 Subject: [PATCH] test(cloudfunc) add throw --- test/lib/cloudfunc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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];