Skip to content

Commit

Permalink
log all caught errors
Browse files Browse the repository at this point in the history
  • Loading branch information
louisholley committed Jan 9, 2024
1 parent 752f4fa commit d5995be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ const main = async () => {
console.log(`navigated to URL with response status: ${response.status()}`);
}
catch (err) {
console.log(err)
if (err && err.name && err.name === "TimeoutError") {
throw ERRORS.TIMEOUT
}
Expand Down Expand Up @@ -260,6 +261,7 @@ const main = async () => {
// }
}
catch (err) {
console.log(err)
throw ERRORS.CANVAS_CAPTURE_FAILED
}

Expand Down

0 comments on commit d5995be

Please sign in to comment.