From a6ffe0fa71eea0872f1b2bb55af938e49c6825cf Mon Sep 17 00:00:00 2001 From: Julian Mayer Date: Wed, 30 Jan 2019 13:31:07 +0100 Subject: [PATCH] #1352 --- Autoupdate/SUPipedUnarchiver.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Autoupdate/SUPipedUnarchiver.m b/Autoupdate/SUPipedUnarchiver.m index 1849b85f..23d27ef5 100644 --- a/Autoupdate/SUPipedUnarchiver.m +++ b/Autoupdate/SUPipedUnarchiver.m @@ -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 {