Re: Reporting errors in PhD
| From: | Hannes Magnusson | Date: | Fri, 08 Jan 2010 10:36:36 +0000 |
| Subject: | Re: Reporting errors in PhD | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381257@lists.php.net to get a copy of this message | ||
On Fri, Jan 8, 2010 at 10:55, Richard Quadling <rquadling@googlemail.com> wrote:
> Hi.
>
> Something that I would like to update in PhD is when an error is
> reported (say VERBOSE_MISSING_ATTRIBUTES), to be able to include the
> xml:ID of the nearest ancestor with an xml:ID.
>
> So, ...
>
> [VERBOSE_MISSING_ATTRIBUTES] Missing alt attribute for
> en/features/figures/gc-algorithm.png
>
> becomes
>
> VERBOSE_MISSING_ATTRIBUTES] Missing alt attribute for
> en/features/figures/gc-algorithm.png for features.gc.collecting-cycles
>
> Is there an easy way to do this that doesn't cost require massive
> amount of searching?
You can get the current chunk ID with little effort I think.
IIRC that will even work when building bightml, as chunks are still
registered, just not rendered as such.
Speaking of errormessages, "VERBOSE_MISSING_ATTRIBUTES" doesn't really
have a great meaning.
We should map the constants to textual representation, so that error
message above becomes "Missing attributes: Missing alt attribute
for"..
-Hannes