From 9c236549375eb30633d9f2e4a5d997af7e23497b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Wed, 25 Nov 2026 18:50:34 -0300 Subject: [PATCH] fix: choosing the machine with no network is a warning to try again, not an error (DTF-WEB-1Q) Co-Authored-By: Claude Opus 5.5 (1M context) --- web/kanban-users.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/kanban-users.js b/web/kanban-users.js index 0737df3..05510c2 100644 --- a/web/kanban-users.js +++ b/web/kanban-users.js @@ -40,6 +40,9 @@ function askMachine(again=false){ try{await api('/me/machine',{machine_id:id,confirm},{expected:confirm?[]:[409]});m.close();await load(true);} catch(e){ if(e.status===409&&!confirm&&await ask('Outra pessoa está nesta máquina',e.message,'Continuar mesmo assim'))return choose(id,true); + // No network (an iPhone between Wi-Fi and data, Sentry DTF-WEB-1Q): a + // warning to try again, not an error; load() reports one that lasts. + if(e.offline){say('Sem conexão com o servidor. Confira a internet e escolha a máquina de novo.');return;} say(e.message,true);}}; // Each machine with what it is printing, and who is on it now. const list=node('div',undefined,'mchoices');