[gs-cvs] rev 7097 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Tue Oct 10 11:16:22 PDT 2006
Author: leonardo
Date: 2006-10-10 11:16:22 -0700 (Tue, 10 Oct 2006)
New Revision: 7097
Modified:
trunk/gs/src/interp.c
Log:
Fix (PS interpreter) : Dont print "Returning error -102." that is not an error.
DETAILS :
The debug build printed "Returning error -102.".
-102 == e_InterpreterExit is not an error.
Don't print the confusing message.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/interp.c
===================================================================
--- trunk/gs/src/interp.c 2006-10-10 18:00:19 UTC (rev 7096)
+++ trunk/gs/src/interp.c 2006-10-10 18:16:22 UTC (rev 7097)
@@ -1715,6 +1715,12 @@
esp = iesp;
osp = iosp;
ref_assign_inline(perror_object, ierror.obj);
+#ifdef DEBUG
+ if (ierror.code == e_InterpreterExit) {
+ /* Do not call gs_log_error to reduce the noise. */
+ return e_InterpreterExit;
+ }
+#endif
return gs_log_error(ierror.code, __FILE__, ierror.line);
}
More information about the gs-cvs
mailing list