* Source/GSGhostscriptImageRep.m: Add NSWarnLog to execption

handlers to print a message when finding or invoking Ghostscript
fails.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33524 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-07-11 16:09:35 +00:00
parent f859a92508
commit 6a88e333d4
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2011-07-11 Eric Wasylishen <ericw@new-host-2.home>
* Source/GSGhostscriptImageRep.m: Add NSWarnLog to execption
handlers to print a message when finding or invoking Ghostscript
fails.
2011-07-11 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImage.m (-nativeDrawInRect:...): Compute the rep size

View file

@ -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