summaryrefslogtreecommitdiff
path: root/crates/tor-persist/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-persist: Provide FsMistrustErrorExt, and use itIan Jackson2023-12-131-5/+2
| | | | | | | | | | | | | This code needs fs_mistrust::Error and tor_error::ErrorKind. I think we probably don't want fs_mistrust to depend on tor_error or vice versa. tor_persist is approximately the place where these two threads of thought come together, and it's currently the lowest place where this is needed. Use it in tor-dirmgr too, which is currently the other place that embodies this knowledge about fs_mistrust::Error.
* Test a couple more error cases in tor-persist.Nick Mathewson2022-12-061-1/+10
|
* Use anonymize_home() when displaying various messages.Nick Mathewson2022-08-311-2/+3
| | | | Closes #555
* tor-persist: Resource::Temporary: Mark with cfgIan Jackson2022-07-181-0/+1
| | | | Without this, some builds get a "variant is never constructed" warning.
* tor-persist: Big refactoring on Error type.Nick Mathewson2022-07-061-28/+100
| | | | | | | | | | | Every error now has an action (what we were trying to do), a resource (what we were trying to do it to), and a source (what problem we encountered). Initially I tried to add "action" and "resource" fields to error variants individually, but that led to a combinatorial explosion. Part of #323.
* tor-persist: Move Error to a module.Nick Mathewson2022-07-061-0/+74