Commits

Alun Bestor committed 7f62c17

Made boxer_reveal command properly show an error message for nonexistent paths.

  • Participants
  • Parent commits f16cea7

Comments (0)

Files changed (1)

Boxer/BXEmulator+BXShell.mm

 	
 	NSString *filesystemPath = [self pathForDOSPath: cleanedPath];
 	
+	BOOL couldReveal = NO;
 	if (filesystemPath)
 	{
-		[NSApp sendAction: @selector(revealInFinder:) to: nil from: filesystemPath];
+		BXAppController *appController = [NSApp delegate];
+		couldReveal = [appController revealPath: filesystemPath];
 	}
-	else
+	
+	if (!couldReveal)
 	{
 		NSString *errorFormat = NSLocalizedStringFromTable(@"The path \"%1$@\" could not be found, or does not exist in the OS X filesystem.",
 														   @"Shell",