Print exception stack when generating a test case fails.
This commit is contained in:
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…
Reference in New Issue
Block a user