From 20ee1fa0d307eead5a0adb1e8591061ba772718e Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 30 May 2018 01:39:50 +0300 Subject: [PATCH] Log error code for macOS launc-after-update problem. --- Telegram/SourceFiles/_other/updater_osx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/_other/updater_osx.m b/Telegram/SourceFiles/_other/updater_osx.m index 71e310a06a..0d068948e0 100644 --- a/Telegram/SourceFiles/_other/updater_osx.m +++ b/Telegram/SourceFiles/_other/updater_osx.m @@ -254,7 +254,7 @@ int main(int argc, const char * argv[]) { forKey:NSWorkspaceLaunchConfigurationArguments] error:&error]; if (!result) { - writeLog([@"Could not run application, error: " stringByAppendingString:error ? [error localizedDescription] : @"(nil)"]); + writeLog([[NSString stringWithFormat:@"Could not run application, error %ld: ", (long)[error code]] stringByAppendingString: error ? [error localizedDescription] : @"(nil)"]); } closeLog(); return result ? 0 : -1;