Log error code for macOS launc-after-update problem.

This commit is contained in:
John Preston 2018-05-30 01:39:50 +03:00
parent c70e9b529a
commit 20ee1fa0d3
1 changed files with 1 additions and 1 deletions

View File

@ -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;