Closed Bug 1533048 Opened 5 years ago Closed 5 years ago

Improve error messages when parsing wpt manifests fails

Categories

(Testing :: web-platform-tests, defect)

Version 3
defect
Not set
normal

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(1 file)

The error messages often aren't very good and in particular don't always tell you which file has the problem, which makes debugging rather complex.

Currently we don't always give a useful message and in particular don't always include
the file and line number of the place where the exception occured in order to give a
clue about where the error might be.

To fix this, if we get an error that isn't a ParseError, wrap it in a ParseError to give the
file and line. Also improve one error message.

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jgraham, could you have a look please?

Flags: needinfo?(james)
Flags: needinfo?(james)
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/4b13ce92cd30
Improve wpt expectation ini error messages, r=ato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/18176 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody → james
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: