// ruh roh! the block wasn't cleared successfully, since it's still running
NSError* err = [SCErr errorWithCode:401];
[SCSentry captureError: err];
[SCUIUtilities presentError: err];
} else {
NSAlert* alert = [[NSAlertalloc] init];
[alert setMessageText:@"Success!"];
[alert setInformativeText:@"The block was cleared successfully. You can find the log file, named SelfControl-Killer.log, in your Documents folder. If you're still having issues, please check out the SelfControl FAQ on GitHub."];
[alert addButtonWithTitle:@"OK"];
[alert runModal];
}
}
- (NSString*)selfControlKillerHelperToolPath {
staticNSString* path;
// Cache the path so it doesn't have to be searched for again.