diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 84a9917a..09b5aa45 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -492,6 +492,10 @@ } NSBundle *sparkleBundle = updater.sparkleBundle; + if (!sparkleBundle) { + SULog(SULogLevelError, @"Sparkle bundle is gone?"); + return; + } // Copy the relauncher into a temporary directory so we can get to it after the new version's installed. // Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems. @@ -501,6 +505,14 @@ NSError *error = nil; BOOL copiedRelaunchPath = NO; + if (!relaunchToolName) { + SULog(SULogLevelError, @"SPARKLE_RELAUNCH_TOOL_NAME not configued"); + } + + if (!relaunchToolSourcePath) { + SULog(SULogLevelError, @"Sparkle.framework is damaged. %@ is missing", relaunchToolName); + } + if (relaunchToolSourcePath) { relaunchCopyTargetPath = [[self appCachePath] stringByAppendingPathComponent:[relaunchToolSourcePath lastPathComponent]];