chiark / gitweb /
Store a log of errors in the Client.
authorSimon Tatham <anakin@pobox.com>
Fri, 26 Jan 2024 08:52:14 +0000 (08:52 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 27 Jan 2024 09:32:59 +0000 (09:32 +0000)
commit846a6f8b425669c49db46d57b421fca9de892920
tree17c61a4ddca64b40cf0c2b27d1691f517e395c3f
parent654e626e7cd61eec54ff599fee4bdbb7f3cc591b
Store a log of errors in the Client.

Each entry is a ClientError and a datestamp. But errors generated in
the client don't _automatically_ get added to this log: they get
passed back to the caller of an individual Client method, the same as
they always have. That way the caller can decide whether the error is
one it can handle in some other way, and only if all else fails, call
client.add_to_error_log().

The next plan is for every client.add_to_error_log() to be followed by
throwing the TUI into the Error Log file.
src/client.rs
src/editor.rs
src/posting.rs
src/tui.rs