ue: notify on 'Price is not 0!' + ask to report, #44
This commit is contained in:
parent
d3d22b1582
commit
7e4770b846
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue