Skip to content

Commit

Permalink
Merge pull request #9468 from camptocamp/avoid-additional-error
Browse files Browse the repository at this point in the history
Avoid unnecessary additional error
  • Loading branch information
sbrunner authored Sep 9, 2024
2 parents 50ff2bc + 19772a2 commit 7465bf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ function loaded(page, browser) {
loaded(page, browser);
})().catch(async (error) => {
console.log(`Unexpected error: ${error}.`);
await browser.close();
if (browser && !browserClosed) {
await browser.close();
}
process.exit(2);
});

0 comments on commit 7465bf9

Please sign in to comment.