Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
Re-throw error after capturing snapshot #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Stvad committed Mar 21, 2020
1 parent 42600f4 commit 2ec8f9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const generateExport = async () => {
console.error(err);

await page.screenshot({path: "error.png"});
throw err
}
await browser.close();
};
Expand Down

0 comments on commit 2ec8f9e

Please sign in to comment.