This commit is contained in:
Julian Mayer committed 2019-01-30 13:31:07 +01:00
1 parent f9740292d4
commit 3c793482c8
1 file changed
+7 -1
+7 -1
View File
@@ -113,7 +113,13 @@
[task setStandardOutput:[NSFileHandle fileHandleWithStandardOutput]];
[task setLaunchPath:command];
[task setArguments:[args arrayByAddingObject:destination]];
[task launch];
@try {
[task launch];
}
@catch (NSException *e) {
error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Extraction failed, -[NSTask launch] threw exception '%@'", e.description]}];
return;
}
NSUInteger bytesRead = 0;
do {