Skip to content

Commit

Permalink
Update for node v0.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Jun 25, 2012
1 parent 9d28668 commit c59ba29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/wheat/renderers.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ function execPipe(command, args, data, callback) {
child.on('error', function onExit(err) { child.on('error', function onExit(err) {
callback(err); callback(err);
}); });
var exitCode;
child.on('exit', function onExit(code) { child.on('exit', function onExit(code) {
if (code > 0) { exitCode = code;
});
child.on('close', function () {
if (exitCode > 0) {
callback(new Error(stderr.join(""))); callback(new Error(stderr.join("")));
} else { } else {
var buffer = new Buffer(size); var buffer = new Buffer(size);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wheat", "name": "wheat",
"description": "Git powered javascript blog.", "description": "Git powered javascript blog.",
"tags": ["git","node","howtonode","blog"], "tags": ["git","node","howtonode","blog"],
"version": "0.2.5", "version": "0.2.6",
"author": "Tim Caswell <tim@creationix.com>", "author": "Tim Caswell <tim@creationix.com>",
"repository": { "repository": {
"type": "git", "type": "git",
Expand All @@ -12,7 +12,7 @@
"engines": ["node >= 0.4.0"], "engines": ["node >= 0.4.0"],
"main": "lib/wheat.js", "main": "lib/wheat.js",
"dependencies": { "dependencies": {
"git-fs": ">=0.0.5", "git-fs": ">=0.0.9",
"simple-mime": ">=0.0.1", "simple-mime": ">=0.0.1",
"haml": ">=0.2.5", "haml": ">=0.2.5",
"step": ">=0.0.3", "step": ">=0.0.3",
Expand Down

0 comments on commit c59ba29

Please sign in to comment.