8000 How to show unpack errors to the user · Issue #6 · teeworlds-go/protocol · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to show unpack errors to the user #6
Open
@ChillerDragon

Description

@ChillerDragon

As of right now if a message fails to unpack it will become a unknown message and no error is ever bubbled up to the user.
As a user I am sometimes interested in a full list of all the unpack errors that occurred in one packet.

This is where the errors get lost at the moment

https://github.com/teeworlds-go/go-teeworlds-protocol/blob/eed93918e7be3b64e482472f24f858af47d3f339/protocol7/packet.go#L243-L253

Would it be nice to have a Errors []error field on the Packet struct? Should every single failed call to unpacker call the user hook OnError()?

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

      0