Map Sparkle error 4005 to "Move to Applications" message
Error 4005 (updater permission) with underlying code 10 (cache directory creation failure) has the same root cause as 1003/1005: the app isn't in Applications.
This commit is contained in:
parent
87e5ac02ad
commit
6866743519
1 changed files with 4 additions and 8 deletions
|
|
@ -192,8 +192,6 @@ class UpdateViewModel: ObservableObject {
|
|||
}
|
||||
if nsError.domain == SUSparkleErrorDomain {
|
||||
switch nsError.code {
|
||||
case 4005:
|
||||
return "Updater Permission Error"
|
||||
case 2001:
|
||||
return "Couldn't Download Update"
|
||||
case 1000, 1002:
|
||||
|
|
@ -204,7 +202,7 @@ class UpdateViewModel: ObservableObject {
|
|||
return "Insecure Update Feed"
|
||||
case 1, 2, 3001, 3002:
|
||||
return "Update Signature Error"
|
||||
case 1003, 1005:
|
||||
case 1003, 1005, 4005:
|
||||
return "Move to Applications"
|
||||
default:
|
||||
break
|
||||
|
|
@ -239,10 +237,8 @@ class UpdateViewModel: ObservableObject {
|
|||
}
|
||||
if nsError.domain == SUSparkleErrorDomain {
|
||||
switch nsError.code {
|
||||
case 4005:
|
||||
return "macOS blocked cmuxterm from updating apps. Open System Settings → Privacy & Security → App Management, allow cmuxterm, then try again."
|
||||
case 2001:
|
||||
return "cmuxterm couldn’t download the update feed. Check your connection and try again."
|
||||
return "cmuxterm couldn't download the update feed. Check your connection and try again."
|
||||
case 1000, 1002:
|
||||
return "The update feed could not be read. Please try again later."
|
||||
case 4:
|
||||
|
|
@ -250,8 +246,8 @@ class UpdateViewModel: ObservableObject {
|
|||
case 3:
|
||||
return "The update feed is insecure. Please contact support."
|
||||
case 1, 2, 3001, 3002:
|
||||
return "The update’s signature could not be verified. Please try again later."
|
||||
case 1003, 1005:
|
||||
return "The update's signature could not be verified. Please try again later."
|
||||
case 1003, 1005, 4005:
|
||||
return "Move cmuxterm into Applications and relaunch to enable updates."
|
||||
default:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue