Created
March 12, 2011 14:35
-
-
Save mikeabdullah/867275 to your computer and use it in GitHub Desktop.
Log errors to the console before they're presented
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSError *)application:(NSApplication *)theApplication | |
willPresentError:(NSError *)error | |
{ | |
// Log the error to the console for debugging | |
NSLog(@"Application will present error:\n%@", [error description]); | |
return error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment