Re: Calabash: p:error

+1 to this idea!  I have been wishing for this (or at least a snipped of the offending XML as a bare minimum) since I started using XProc…

—Tony

On Dec 22, 2010, at 12:13 PM, Florent Georges wrote:

>  Hi,
> 
>  In the implementation of p:error, an XProcException is thrown.  If
> there is an input doc on the port source, its trings value is used as
> the exception message:
> 
>    throw new XProcException(errorCode, doc.getStringValue());
> 
>  Is there any reason why not to get the serialized representation of
> this XML document, instead of its string value?  For instance like:
> 
>    throw new XProcException(errorCode, doc.toString());
> 
>  That results in more readable logs in case we define an error
> vocabulary for an application.
> 
>  Regards,
> 
> -- 
> Florent Georges
> http://fgeorges.org/
> 

Received on Wednesday, 22 December 2010 20:30:18 UTC