ue: notify on 'Price is not 0!' + ask to report, #44

This commit is contained in:
Ralf Vogler 2023-06-02 00:52:11 +02:00
parent d3d22b1582
commit 7e4770b846

View file

@ -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();