Skip to content

Externally accessing xhr property on error object created by shaka.util.AjaxRequest.prototype.createError_ #317

Closed
@wader

Description

@wader

Hi, i'm trying to display error messages based on the body returned in failed HTTP requests (auth, geo error etc). I see that the XMLHTTPRequest object with status and body is available under the details property of the error object passed to the error handler. The problem is that in the compiled version the xhr property name has been mangled by the closure compiler.

To make it work i guess i have to add something to externs/ but not sure how. Just a file with Error.xhr;? The error object is created in lib/util/ajax_request.js:shaka.util.AjaxRequest.prototype.createError_.

Maybe there is some better way of doing this?

Currently using shaka-player 1.6.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions