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); }