Some error reason is better than no reason

This commit is contained in:
Zorg committed 2016-12-21 16:14:25 -05:00
1 parent 7bc7a90a09
commit dd1bda5066
1 file changed
+2 -2
+2 -2
View File
@@ -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) {