Print exception stack when generating a test case fails.

This commit is contained in:
Nicolas Perriault 2015-03-23 15:59:06 +01:00
parent 14b33b69db
commit aeeabb7c79

View File

@ -127,6 +127,7 @@ function runReadability(source, destPath, metadataDestPath) {
var result = new Readability(uri, doc).parse(); var result = new Readability(uri, doc).parse();
} catch (ex) { } catch (ex) {
console.error(ex); console.error(ex);
ex.stack.forEach(console.log.bind(console));
} }
if (!result) { if (!result) {
console.error("No content generated by readability, not going to write expected.html!"); console.error("No content generated by readability, not going to write expected.html!");