Make an error an error

This commit is contained in:
Jordan Eldredge 2020-01-02 15:56:13 -08:00
parent 11a677b1cc
commit 589f40869b

View file

@ -49,7 +49,7 @@ async function testPage({ url, name, firstTrackText }) {
} catch (e) {
log(`🛑 Errored in [${name}]. Wrote screenshot to ./error.png`);
await page.screenshot({ path: "error.png", fullPage: true });
console.error(e);
throw e;
} finally {
log("DONE");
await browser.close();