From 7e07e65345ef0cd9d3a85f80b69e575492dd8139 Mon Sep 17 00:00:00 2001 From: Ben Paddock Date: Wed, 15 May 2013 16:22:24 +0100 Subject: [PATCH] Throw an exception on error so that the grunt task can fail --- test/twikify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/twikify.js b/test/twikify.js index 6930eab..e905440 100644 --- a/test/twikify.js +++ b/test/twikify.js @@ -106,6 +106,7 @@ twikify.run = function(passedUri, filename) { request.on("error", function(error) { console.log("There was a problem with the request: " + error.message); + throw error.message; }); request.end();