Skip to content

Commit

Permalink
fixes error in display of warnings and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutger Blijdestijn committed Jun 23, 2014
1 parent 29fb2d7 commit 93f7830
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code@jauco.nl>",
"bin": {
"jester-watch": "./src/bin/jester-watch.js",
Expand Down
12 changes: 6 additions & 6 deletions src/lib/handleWebpackResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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!");
Expand Down

0 comments on commit 93f7830

Please sign in to comment.