Permalink
Browse files

skip over non json results

  • Loading branch information...
1 parent b5438a1 commit aace8dd758c6023e742d9c63269ce3d48649b9a0 @stammen stammen committed Nov 16, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 bin/vows
View
@@ -525,12 +525,19 @@ function importSuites(files) {
data.forEach(function (data) {
if (data && data !== 'undefined') {
+ try {
+
data = JSON.parse(data);
+
+ // on win32 we may get back console.log strings which break JSON.parse
if (data && data[0] === 'finish') {
result = data[1];
} else {
reporter.report(data);
}
+ } catch(e) {
+
+ }
}
});
}

0 comments on commit aace8dd

Please sign in to comment.