mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:50:48 +00:00
* 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:
parent
f859a92508
commit
6a88e333d4
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue