tree-wide: bubble up errors from daemon threads

There was a mix of just unwrapping (panicking) and catching and logging
errors. The unwrapping is not allowing for particulary pretty error
handling, so let's bubble the errors up by not crashing the thread,
but by just returning a Result<()> than is received when joining the
threads.

Not all .unwrap() uses were translated since a followup PR (#389) will
rework that code anyway (and get rid of the .unwrap() in the process).

Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
This commit is contained in:
Erik Schilling 2023-07-07 08:44:55 +02:00 committed by Viresh Kumar
parent 2b1b3644da
commit a9de87a1ce
5 changed files with 65 additions and 26 deletions

View file

@ -1,5 +1,5 @@
{
"coverage_score": 69.0,
"coverage_score": 68.2,
"exclude_path": "",
"crate_features": ""
}