From dd1bda50665f338c6e55b728cf2cdf3a8543fef9 Mon Sep 17 00:00:00 2001 From: Zorg Date: Wed, 21 Dec 2016 16:14:25 -0500 Subject: [PATCH] Some error reason is better than no reason --- Sparkle/SUBasicUpdateDriver.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 8b22cf33..3b568e73 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -333,8 +333,8 @@ } if (!success) { -#warning this is bad - [self unarchiverDidFail:nil]; + NSError *reason = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{NSLocalizedDescriptionKey: @"Failed to extract update."}]; + [self unarchiverDidFail:reason]; } else { [unarchiver unarchiveWithCompletionBlock:^(NSError *err){ if (err) {