diff -r e5976864dfe9 -r d6ab9f52b4d7 ExceptionUtils.m --- a/ExceptionUtils.m Sat May 24 13:24:33 2008 -0700 +++ b/ExceptionUtils.m Thu Jul 17 13:29:34 2008 -0700 @@ -166,7 +166,6 @@ // From: int mib[4]; size_t bufSize = 0; - int local_error = 0; struct kinfo_proc kp; mib[0] = CTL_KERN; @@ -175,8 +174,8 @@ mib[3] = getpid(); bufSize = sizeof (kp); - if ((local_error = sysctl(mib, 4, &kp, &bufSize, NULL, 0)) < 0) { - Warn(@"Failure calling sysctl"); + if (sysctl(mib, 4, &kp, &bufSize, NULL, 0) < 0) { + Warn(@"Error %i calling sysctl",errno); return NO; } return (kp.kp_proc.p_flag & P_TRACED) != 0;