Fixed: some error handling needed improving.

- Added ~/narwhal/bin to executable paths.
- Hopefully clearer error message when an executable is missing.
- Log PATH when executable is missing.
- Catch parse exceptions when parsing parser.j errors, log the returned text.
This commit is contained in:
Aparajita Fishman
2013-05-11 09:34:23 -04:00
parent 9b3676fa4f
commit 574672f15f
5 changed files with 58 additions and 28 deletions
+13 -2
View File
@@ -91,9 +91,20 @@ AppController *SharedAppControllerInstance = nil;
if (![self.xcc executablesAreAccessible])
{
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
NSRunAlertPanel(@"Executables are missing.", @"Please make sure that python, jsc, objj and nib2cib (or symlinks to them) are somewhere within one of these directories:\n\n/bin\n/usr/bin\n/usr/local/bin\n/usr/local/narwhal/bin\n~/bin\n\nThen launch XcodeCapp again.", @"Quit", nil, nil);
NSRunAlertPanel(
@"Executables are missing.",
@"Please make sure that each one of these executables:\n\n"
@"%@\n\n"
@"(or a symlink to it) is within one these directories:\n\n"
@"%@\n\n"
@"They do not all have to be in the same directory.",
@"Quit",
nil,
nil,
[self.xcc.executables componentsJoinedByString:@"\n"],
[self.xcc.environmentPaths componentsJoinedByString:@"\n"]);
[[NSApplication sharedApplication] terminate:self];
return;