chiark / gitweb /
Reorganise the ClientError enum.
authorSimon Tatham <anakin@pobox.com>
Thu, 25 Jan 2024 18:09:41 +0000 (18:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 25 Jan 2024 18:09:41 +0000 (18:09 +0000)
commit57bea7704d067d9ac8ebb2a7e02a166937a66942
treeb7dff6208137bc5d47a83cdf6d64c548b8def851
parent1e897d4c9176bc03abc2382ba9b22d3ceb874b7c
Reorganise the ClientError enum.

Now it has lots more cases, which should make it easier to format each
one nicely into an entry for a TUI-displayed error log.

Other changes:

 - when we keep the error message from the JSON error document, we
   _also_ keep the HTTP status code

 - lots of from_request calls were missing (possibly in the stuff I
   moved in here from the old separate login.rs). Reinstated.
src/client.rs
src/options.rs