From 7e4770b846135f7d0c36ac101914d35506f79474 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Fri, 2 Jun 2023 00:52:11 +0200 Subject: [PATCH] ue: notify on 'Price is not 0!' + ask to report, #44 --- unrealengine.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unrealengine.js b/unrealengine.js index 871c82e..2993fea 100644 --- a/unrealengine.js +++ b/unrealengine.js @@ -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 report.' + console.error(err); + notify('unrealengine: ' + err); process.exit(1); } // await page.pause();