Skip to content

Commit

Permalink
make parse-dashboard-json robust to EPIPE errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 17, 2015
1 parent 89d7e62 commit 417478a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parse-dashboard-json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env node

var stdin = "";

process.stdout.on('error', function() {
process.exit(0);
});

process.stdin.on('data', function(chunk) { stdin += chunk; });
process.stdin.on('end', function() {
var obj = JSON.parse(stdin);
Expand Down

0 comments on commit 417478a

Please sign in to comment.