From 26757c99a68774da1b1b1628428fee64c81202dc Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 1 Jul 2019 11:55:46 -0700 Subject: [PATCH] [AltStore] Improves error message when refreshing fails --- AltStore/Operations/AppOperationContext.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/AltStore/Operations/AppOperationContext.swift b/AltStore/Operations/AppOperationContext.swift index 1a39c749..85d83070 100644 --- a/AltStore/Operations/AppOperationContext.swift +++ b/AltStore/Operations/AppOperationContext.swift @@ -25,7 +25,15 @@ class AppOperationContext var resignedFileURL: URL? var connection: NWConnection? - var error: Error? + var error: Error? { + get { + return _error ?? self.group.error + } + set { + _error = newValue + } + } + private var _error: Error? init(appIdentifier: String, group: OperationGroup) {