Skip to content

Commit

Permalink
ue: notify on 'Price is not 0!' + ask to report, #44
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Jun 1, 2023
1 parent d3d22b1 commit 7e4770b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unrealengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ try {
const price = (await page.locator('.shopping-cart .total .price').innerText()).split(' ');
console.log('Price: ', price[1], 'instead of', price[0]);
if (price[1] != '0') {
console.error('Price is not 0! Exit!');
const err = 'Price is not 0! Exit! Please <a href="https://github.com/vogler/free-games-claimer/issues/44">report</a>.'
console.error(err);
notify('unrealengine: ' + err);
process.exit(1);
}
// await page.pause();
Expand Down

0 comments on commit 7e4770b

Please sign in to comment.