Skip to content

autobahn.Error should contain the "details" parameter #556

@trombipeti

Description

@trombipeti

autobahn.Error now contains error, args and kwargs. According to the spec, there's always a "details" parameter available (it's a dict).
This should be stored in the Error class.

In the code, I see this in the handlers for the ERROR messages:

var details = msg[3];
var error = new Error(msg[4], msg[5], msg[6]);

And the details seems to be not used. So I think it would be relatively easy to implement.
I can make a PR if you like.

Thanks!

Edit: this details parameter seems to be ignored for other types of messages, too. I start to think, maybe it's intentional?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions