From 6e3da6f44ba07fbf29339c365d46d39154a88c30 Mon Sep 17 00:00:00 2001 From: John Engler Date: Tue, 8 Apr 2014 12:40:27 -0700 Subject: [PATCH] Added error throwing when error loading test file. This will hopefully give us better visibility into our Travis CI build failures. --- test/dateFileAppender-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/dateFileAppender-test.js b/test/dateFileAppender-test.js index 3c61c70..e64619d 100644 --- a/test/dateFileAppender-test.js +++ b/test/dateFileAppender-test.js @@ -135,6 +135,9 @@ vows.describe('../lib/appenders/dateFile').addBatch({ teardown: removeFile('date-file-test.log'), 'should load appender configuration from a json file': function(err, contents) { + if (err) { + throw err; + } assert.include(contents, 'this should be written to the file' + EOL); assert.equal(contents.indexOf('this should not be written to the file'), -1); }