Skip to content

Better disconnect messages sent to client #257

@MSKatKing

Description

@MSKatKing

Is your feature request related to a problem?

Whenever there’s an error server side that causes the client to disconnect, the only thing (for the most part) that is displayed on the client is “Disconnected”. This isn’t descriptive at all, and server logs are required to figure out what went wrong.

Describe the solution / feature you'd like.

Create some kind of trait that errors can implement that gives them a message to display to the client. It would work like Rust’s Error::description but be client friendly. This should hopefully give the client more information on what went wrong, especially when it’s data from the client causing the server to error. The disconnect method on PlayerList can take in this trait and forward the message to the client.

Alternatives you've considered.

N/A

Additional Context

N/A

I have confimed that...

  • ... such a feature does not exist already.
  • ... I ticked all the boxes without reading them
  • ... such a feature request has not been submitted already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions