fix: update ui double string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user