Print exception stack when generating a test case fails.

pull/69/head
Nicolas Perriault 10 years ago
parent 14b33b69db
commit aeeabb7c79

@ -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!");

Loading…
Cancel
Save