This commit is contained in:
Julian Mayer authored and Zorg committed 2021-01-16 19:47:46 -08:00
1 parent 523542ad90
commit a6ffe0fa71
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 {