Yes, a patch for 0.42 has been sent by Steven Liu. I attach the message.
Also, you can use SablotGetMsgText() to get the message text for the
given code.
Hope that helps,
Tom
Here's the message from Steven:
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> Attached is a patch that let last error code return from SablotRunProcessor
> instead of always returns E_OK as a call to processor->cleanupAfterRun() clears
> the pending errorcode.
>
> Regards,
>
> Steven
-------------------- Begin Cut below this line here
--- sablot.cpp Wed Jul 19 20:42:36 2000
+++ sablot.cpp.new Thu Jul 20 11:16:53 2000
@@ -146,10 +146,10 @@
}
if (problem || P(processor_) ->
open(sheetURI,inputURI,resultURI))
{
+ int code = P(processor_) -> situation -> getError();
P(processor_) -> cleanupAfterRun();
P(processor_) -> freeResultArgs();
// cdelete(proc);
- int code = P(processor_) -> situation -> getError();
P(processor_) -> situation->clear();
return code;
}
---------------------- End Cut Before this line here
"Sayeau, Derek" wrote:
>
> Hi all, I'm currently using 0.42 (haven't upgraded yet, waiting till it's
> marked stable,
> and not "experimental":)). When a syntax error occurs in the stylesheet an
> error message is
> written to stdout, however the error code that is returned is *always* 0.
> Is there anyway
> to get the message written to stdout, and is there a patch for returning the
> correct error
> code, or does it only return an error code under certain circumstances
> (sablotRunProcessor, that
> is)?
>
> Thanks!
>
> -derek