NOWAIT=1 to fail fast instead of waiting for user input

hitting ctrl-c 3x to abort is annoying...
This commit is contained in:
Ralf Vogler 2025-05-25 16:40:09 +02:00
parent 9285b52017
commit 82d39d30b6
4 changed files with 5 additions and 1 deletions

View file

@ -79,6 +79,7 @@ try {
while (await page.locator('egs-navigation').getAttribute('isloggedin') != 'true') {
console.error('Not signed in anymore. Please login in the browser or here in the terminal.');
if (cfg.nowait) process.exit(1);
if (cfg.novnc_port) console.info(`Open http://localhost:${cfg.novnc_port} to login inside the docker container.`);
if (!cfg.debug) context.setDefaultTimeout(cfg.login_timeout); // give user some extra time to log in
console.info(`Login timeout is ${cfg.login_timeout / 1000} seconds!`);