Closed Bug 489529 Opened 16 years ago Closed 14 years ago

Report path data parse error to error console

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: takenspc, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

See bug 489328 comment 5 Bug 366130 probably depends of this bug.
Attached patch Patch (obsolete) (deleted) — Splinter Review
Patch. My concern for using |ReportAttributeParseFailure| is that the error console item will be huge when the path data is very long.
Attached patch Patch (deleted) — Splinter Review
Oops! I attached wrong file as a patch!
Attachment #374031 - Attachment is obsolete: true
You really need to show the part of the path that has failed to parse and not all of it. A few characters either side of the parse failure should suffice, and perhaps where the failure is as a number of characters from the start.
The patch in bug 489736 addresses the huge path issue by cropping the text, might be of interest.
The trouble with cropping the text is that if the error is in the 3000th character of d="..." then displaying the first x characters doesn't help all that much.
(In reply to comment #5) No trouble! The sourceLine is split at the clumnNumber into two labels, the first is cropped at the start, the second at the end.
fixed by check in for bug 522306
Status: NEW → RESOLVED
Closed: 14 years ago
Depends on: 522306
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: