Skip to content

Missing context on errors #108

Open
Open

Description

@mkreidenweis

Hi, we currently experience an issue with sitespeed.io, which is using webpagetest-api to drive WPT:
sitespeedio/sitespeed.io#1928

Unfortunately the error coming from webpagetest-api gives practically no context on where the error happened.

Could you maybe add a little more context to errors returned from webpagetest-api?

From what I can see it shouldn't be hard to add e.g. pathname to the err somehow here:
https://github.com/marcelduran/webpagetest-api/blob/6bac270b59c44f1f4841231db14c16b8544e44ca/lib/webpagetest.js#L228

I'm not quite sure how the WPTAPIError is supposed to be used though and how I would integrated the new behavior into your test suite.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions