From 6a88e333d4f79b9f9ee23f3fbadc9d238feb9d18 Mon Sep 17 00:00:00 2001 From: ericwa Date: Mon, 11 Jul 2011 16:09:35 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ Source/GSGhostscriptImageRep.m | 7 +++++++ 2 files changed, 13 insertions(+) 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