fix: update ui double string

This commit is contained in:
ethernet
2026-09-24 14:11:17 -04:00
parent e78e3a77be
commit de89d9c95b

View File

@@ -94,14 +94,10 @@ function ordinaryUpdateStatus({ apply, checking, status, target, u }: UpdateStat
}
if (status?.error) {
// A git that never ran is a local problem; leading with "couldn't reach
// the update server" would misdiagnose it as a network failure.
const prefix = status.error === 'git-unusable' ? '' : u.cantReach
return {
applying,
error: [status.message, status.error].filter(l => !!l).join('\n'),
line: [prefix, status.message].filter(Boolean).join(' '),
line: u.cantReach,
supported,
tone: 'error',
updateAvailable