Log more errors

This commit is contained in:
Kornel committed 2017-05-18 21:48:51 +01:00
1 parent 4f965660f3
commit bfada07a2c
1 file changed
+12
+12
View File
@@ -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]];