From aeeabb7c7941c4bda0f39574468b3aad5afd589c Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Mon, 23 Mar 2015 15:59:06 +0100 Subject: [PATCH] Print exception stack when generating a test case fails. --- test/generate-testcase.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/generate-testcase.js b/test/generate-testcase.js index a4f0630..21c8779 100644 --- a/test/generate-testcase.js +++ b/test/generate-testcase.js @@ -127,6 +127,7 @@ function runReadability(source, destPath, metadataDestPath) { var result = new Readability(uri, doc).parse(); } catch (ex) { console.error(ex); + ex.stack.forEach(console.log.bind(console)); } if (!result) { console.error("No content generated by readability, not going to write expected.html!");