zellij/zellij-server/src
har7an 453142775c
errors: Remove log::error in server (#1881)
* server/wasm_vm: Replace `log::error!`

with better error logging by means of `non_fatal`. This preserves the
original error and allows adding context information on top. Also makes
error formatting more uniform across the application.

* server/tab: Replace `log::error!`

with better error logging by means of `non_fatal`. This preserves the
original error and allows adding context information on top. Also makes
error formatting more uniform across the application.

* server/route: Replace `log::error!`

and propagate the error to the caller instead.

* server/pty: Replace `log::error!`

with better error logging by means of `non_fatal`. This preserves the
original error and allows adding context information on top. Also makes
error formatting more uniform across the application.

Also add per-instruction error context to make it clear what we tried to
accomplish when an error occured.

* server/panes/tiled_panes: Merge dependencies

and sort them into a better order.

* server/panes/tiled_panes: Replace `log::error!`

with better error logging by means of `non_fatal`. This preserves the
original error and allows adding context information on top. Also makes
error formatting more uniform across the application.

* server/os_input_output: Merge depndencies

and sort them into a better order.

* server/logging_pipe: Replace `log::error!`

with better error logging by means of `non_fatal`. This preserves the
original error and allows adding context information on top. Also makes
error formatting more uniform across the application.

* server/os_io: Remove uses of `log::error`

* changelog: Add PR #1881

* server/os_io: Gracefully handle failing resize

for terminals IDs that don't exist, instead of propagating the error to
the user.

* server/lib: Remove leftover log message

* server/pty: Log error cause

rather than providing a hard-coded error reason which is plain wrong in
this context.

* server/screen: Remove calls to `log::error!`

and change `get_active_tab(_mut)?` to return a `Result` instead of an
`Option`. This already makes many places in the code obsolete where
previously "failed to get active tab..." was logged manually.

Rather than logging, use the `anyhow::Error`s we have, along with all
their context information, and log these instead.
2022-11-08 10:56:23 +00:00
..
output errors: Don't unwrap in zellij_server::output (#1878) 2022-10-30 06:02:03 +00:00
panes errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
tab errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
ui feat(command-panes): allow to start suspended (#1887) 2022-11-01 09:07:25 +01:00
unit fix(edit): treat cwd properly (#1904) 2022-11-03 11:06:37 +01:00
lib.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
logging_pipe.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
os_input_output.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
pty.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
pty_writer.rs errors: Don't unwrap in server::pty_writer (#1872) 2022-10-28 14:43:06 +00:00
route.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
screen.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00
terminal_bytes.rs errors: Don't unwrap in server::terminal_bytes (#1876) 2022-10-28 17:12:05 +00:00
thread_bus.rs zellij-server: improve thread_bus error handling (#1775) 2022-10-07 09:04:08 +00:00
wasm_vm.rs errors: Remove log::error in server (#1881) 2022-11-08 10:56:23 +00:00