From 3cbc69bf387ad5299fbb71791b2e84a058d4c604 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 31 Aug 2020 16:39:48 -0400 Subject: [PATCH] improved error logging if mame can't be launched. --- Ample/LogWindowController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ample/LogWindowController.m b/Ample/LogWindowController.m index acf9805..1ae86b9 100644 --- a/Ample/LogWindowController.m +++ b/Ample/LogWindowController.m @@ -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; }