mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-16 07:31:28 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user