Skip to content

We should stringify an empty jQuery element better #14279

@bahmutov

Description

@bahmutov

When throwing an error, I see the following

Screen Shot 2020-12-22 at 2 29 22 PM

Which is due to code in $utils.stringifyActual(subject)

Debugging this I see an empty jQuery element.

Screen Shot 2020-12-22 at 2 29 14 PM

We can definitely report a better message instead of {}

I will create a better reproducible example, right now this happens inside a custom command

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions