Opened 16 years ago

Closed 14 years ago

Last modified 12 years ago

#7876 closed (fixed)

Improve template error messages to include expected end tag

Reported by: joerg@… Owned by: Matthias Kestenholz
Component: Template system Version: dev
Severity: Keywords:
Cc: mk@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If there's a mismatch for block tags, the exception raised currently is only of limited help to trace it down.
It would be nice if it can be changed e.g. to

Invalid block tag: 'endblock', expected: 'endwidth'

and maybe even print the line of the start block.

Attachments (1)

7876.patch (1.1 KB ) - added by Matthias Kestenholz 16 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Adrian Holovaty, 16 years ago

Summary: Improve template diagnosticImprove template error messages to include expected end tag
Triage Stage: UnreviewedAccepted

This would indeed be a great feature.

by Matthias Kestenholz, 16 years ago

Attachment: 7876.patch added

comment:2 by Matthias Kestenholz, 16 years ago

Cc: mk@… added
Has patch: set
Owner: changed from nobody to Matthias Kestenholz
Status: newassigned

comment:3 by Matthias Kestenholz, 15 years ago

Triage Stage: AcceptedReady for checkin

Patch still applies to current trunk, and works as expected.

comment:4 by Matthias Kestenholz, 14 years ago

milestone: 1.2

comment:5 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [12460]) Fixed #7876 - Improved template error message to include expected end tag. Thanks to Matthias Kestenholz for the initial patch.

comment:6 by Jacob, 12 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top