lib-client reaches unhandled unreachable code if improperly configured
Describe the bug
If ratcat is registered to an address that is unknown to ratmand, then it will panic after reaching a code path marked unreachable when attempting to communicate with the server.
Component
lib-client
To Reproduce
Steps to reproduce the behavior:
- Register an address with ratcat.
- Delete the address from ratmand's configuration.
- Attempt to run ratcat.
Expected behavior
Ratcat should provide an error message that indicates the client is not registered with the server.
Screenshots(If Applicable)
Environment:
The unreachable statement can be found at: https://git.irde.st/we/irdest/-/blob/develop/ratman/lib-client/src/lib.rs#L103