improved error logging if mame can't be launched.

This commit is contained in:
Kelvin Sherlock 2020-08-31 16:39:48 -04:00
parent e003aea884
commit 3cbc69bf38
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ static NSMutableSet *LogWindows;
if (error) {
NSLog(@"launchAction: %@", error);
NSURL *url = [task executableURL];
NSString *path = [NSString stringWithCString: [url fileSystemRepresentation] encoding: NSUTF8StringEncoding];
NSLog(@"NSTask error. Path = %@ error = %@", path, error);
[self appendString: path];
[self appendString: [error description]];
return error;
}