Skip to content

Commit

Permalink
include lint message in fail
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Feb 10, 2012
1 parent 21daf14 commit 829eed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -62,7 +62,7 @@ app.get('/check.json', function (req, res) {
prefix.on('message', function(event) {
console.log(event);
if (event.type == 'dirty') {
res.send({ pass: false });
res.send({ pass: false, lint: event.lint });
} else if (event.type == 'end') {
res.send({ pass: true });
}
Expand Down
2 changes: 1 addition & 1 deletion prefix.js
Expand Up @@ -132,7 +132,7 @@ Prefix.prototype.parseHTML = function (html, url) {
// this tells the parent process to show a fail or success whilst we continue with the processing
self.dirty = true;

process.send({ type: 'dirty' });
process.send({ type: 'dirty', lint: message });
if (self.dirtyExit) {
process.exit();
}
Expand Down

0 comments on commit 829eed0

Please sign in to comment.