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