Skip to content

Commit

Permalink
Merge pull request #196 from mousetraps/i96
Browse files Browse the repository at this point in the history
Fix #96 - print stack trace when error is encountered while parsing tests
  • Loading branch information
mousetraps committed Jun 9, 2015
2 parents 53d545a + d2f1d0f commit a602e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var find_tests = function (testFileList, discoverResultFile) {
try {
testCases = require(testFile);
} catch (ex) {
console.error("NTVS_ERROR:" + ex);
console.error("NTVS_ERROR:" + ex.stack);
return;
}
for (var test in testCases) {
Expand Down
2 changes: 1 addition & 1 deletion Nodejs/Product/Nodejs/TestFrameworks/mocha/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var find_tests = function (testFileList, discoverResultFile, projectFolder) {
getTestList(mocha.suite, testFile);
} catch (e) {
//we would like continue discover other files, so swallow, log and continue;
console.error('catch discover error:' + e);
console.error('catch discover error:' + e.stack);
}
});

Expand Down

0 comments on commit a602e58

Please sign in to comment.