From c02cf2c284ff773528d8a8a7a3a079a79e4b68fb Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat, 4 Mar 2023 08:08:35 -0800 Subject: [PATCH] Update error codes to match minimuxer error codes (this is why people got Unknown error instead of an actual error message) Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> --- AltStore/Operations/OperationError.swift | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/AltStore/Operations/OperationError.swift b/AltStore/Operations/OperationError.swift index 9d118a82..331db175 100644 --- a/AltStore/Operations/OperationError.swift +++ b/AltStore/Operations/OperationError.swift @@ -120,45 +120,45 @@ enum OperationError: LocalizedError func minimuxer_to_operation(code: Int32) -> OperationError { switch code { - case -1: + case 1: return OperationError.noDevice - case -2: + case 2: return OperationError.createService(name: "debug") - case -3: + case 3: return OperationError.createService(name: "instproxy") - case -4: + case 4: return OperationError.getFromDevice(name: "installed apps") - case -5: + case 5: return OperationError.getFromDevice(name: "path to the app") - case -6: + case 6: return OperationError.getFromDevice(name: "bundle path") - case -7: + case 7: return OperationError.setArgument(name: "max packet") - case -8: + case 8: return OperationError.setArgument(name: "working directory") - case -9: + case 9: return OperationError.setArgument(name: "argv") - case -10: + case 10: return OperationError.getFromDevice(name: "launch success") - case -11: + case 11: return OperationError.detach - case -12: + case 12: return OperationError.functionArguments - case -13: + case 13: return OperationError.createService(name: "AFC") - case -14: + case 14: return OperationError.afc - case -15: + case 15: return OperationError.install - case -16: + case 16: return OperationError.uninstall - case -17: + case 17: return OperationError.createService(name: "misagent") - case -18: + case 18: return OperationError.profileInstall - case -19: + case 19: return OperationError.profileInstall - case -20: + case 20: return OperationError.noConnection default: return OperationError.unknown