From c2db46f6563b1755ceeb3cc49c664ac55e7588fe Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 23 Jul 2016 14:46:35 -0400 Subject: [PATCH] Add error codes to log messages --- InstallerLauncher/SUSubmitInstaller.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InstallerLauncher/SUSubmitInstaller.m b/InstallerLauncher/SUSubmitInstaller.m index 47f93c30..1efc9ec6 100644 --- a/InstallerLauncher/SUSubmitInstaller.m +++ b/InstallerLauncher/SUSubmitInstaller.m @@ -35,7 +35,7 @@ OSStatus createStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &auth); if (createStatus != errAuthorizationSuccess) { auth = NULL; - SULog(@"Failed to create authorization reference"); + SULog(@"Failed to create authorization reference: %d", createStatus); } BOOL canceledAuthorization = NO; @@ -55,7 +55,7 @@ OSStatus copyStatus = AuthorizationCopyRights(auth, &rights, kAuthorizationEmptyEnvironment, flags, NULL); if (copyStatus != errAuthorizationSuccess) { - SULog(@"Failed copying system domain rights with kSMRightModifySystemDaemons"); + SULog(@"Failed copying system domain rights with kSMRightModifySystemDaemons: %d", copyStatus); failedToUseSystemDomain = YES; if (copyStatus == errAuthorizationCanceled) {