diff --git a/package.json b/package.json index a2f187cf..70c95449 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jester-tester", "description": "Get your project tested and out there with minimal fuss.", "repository": "https://github.com/jauco/jester", - "version": "1.1.0-rc1", + "version": "1.1.0-rc2", "author": "Jauco Noordzij ", "bin": { "jester-watch": "./src/bin/jester-watch.js", diff --git a/src/lib/handleWebpackResult.js b/src/lib/handleWebpackResult.js index ed5d015e..c0ce2ccf 100644 --- a/src/lib/handleWebpackResult.js +++ b/src/lib/handleWebpackResult.js @@ -13,9 +13,9 @@ module.exports = function handleWebpackResult(stats) { }; var logErrorsByLine = function (errors) { - errors.byLine(function (err) { - console.log(" ", err); - }) + byLine(errors, function (err) { + console.log(" ", err, typeof err); + }); }; var pluralizeIf = function(noun, count) { @@ -26,12 +26,12 @@ module.exports = function handleWebpackResult(stats) { console.log(pluralizeIf("Non-fatal error", nonFatalErrors.length) + ":"); nonFatalErrors.forEach(logErrorsByLine); } - + if (warnings.length > 0) { - console.log(pluralizeIf("Warning", nonFatalErrors.length) + ":"); + console.log(pluralizeIf("Warning", warnings.length) + ":"); warnings.forEach(logErrorsByLine); } - + console.error("Building finished, but the result might not work!"); } else { console.log("Building succeeded!");