diff --git a/ChangeLog b/ChangeLog index 7c0ff419a..82227d238 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-07-11 Eric Wasylishen + + * Source/GSGhostscriptImageRep.m: Add NSWarnLog to execption + handlers to print a message when finding or invoking Ghostscript + fails. + 2011-07-11 Fred Kiefer * Source/NSImage.m (-nativeDrawInRect:...): Compute the rep size diff --git a/Source/GSGhostscriptImageRep.m b/Source/GSGhostscriptImageRep.m index 8c22d2a52..e7b528a25 100644 --- a/Source/GSGhostscriptImageRep.m +++ b/Source/GSGhostscriptImageRep.m @@ -130,6 +130,12 @@ } NS_HANDLER { + static BOOL warned = NO; + if (!warned) + { + warned = YES; + NSWarnLog(@"An error occurred while determining the Ghostscript executable path. If you would like to use Ghostscript you can set the GSGhostscriptExecutablePath user default to the full path to the gs executable."); + } } NS_ENDHANDLER } @@ -173,6 +179,7 @@ } NS_HANDLER { + NSWarnLog(@"An error occurred while attempting to invoke Ghostscript at the following path: %@", launchPath); } NS_ENDHANDLER