Skip to content

Commit

Permalink
revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aweng98 committed Mar 9, 2021
1 parent 47f3e8b commit 12f9dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/jest.test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ beforeEach(async () => {
page.on('error', async (error) => {
const title = await getPageTitle();
try {
console.error(`PAGE ERROR: "${title}"\n${error.message}\n${error.stack}`);
console.error(`PAGE ERROR: "${title}"\n${error.toString()}\n${error.message}\n${error.stack}`);
console.log('');
} catch (err) {
console.error(`❗ "${title}"\nException occurred when getting page error.\n${err}`);
Expand All @@ -218,7 +218,7 @@ beforeEach(async () => {
page.on('pageerror', async (error) => {
const title = await getPageTitle();
try {
console.error(`PAGEERROR: "${title}"\n${error.message}\n${error.stack}`);
console.error(`PAGEERROR: "${title}"\n${error.toString()}\n${error.message}\n${error.stack}`);
console.log('');
} catch (err) {
console.error(`❗ "${title}"\nPage exception occurred when getting pageerror.\n${err}`);
Expand Down

0 comments on commit 12f9dc0

Please sign in to comment.