aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-client/src/err
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* arti-client: Use ErrorSources to find best hint for an error.Nick Mathewson2026-02-161-9/+5
| | | | | Previously, due to #2338, we would miss any error nested directly inside an io::Error.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* arti-client: Implement the basics of protocol enforcement.Nick Mathewson2025-04-161-1/+16
| | | | This is the major part of #1849.
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* Add tests for finding (or not) hints in our error types.Nick Mathewson2024-02-161-0/+58
|
* Discourage providing HintableErrorImpl without using the macro.Nick Mathewson2024-02-161-3/+10
|
* Rename one of the hint methods to hint_specificNick Mathewson2024-02-161-3/+10
|
* Refactor and improve error hinting.Nick Mathewson2024-02-141-0/+103
Instead of using complicated match statements, use downcasting to find error types that define specific hints. This also lets us define a reasonable hint-extractor for anyhow::Error, and use it when reporting errors in main. I've left an implementation of hint() in `impl Error`, to avoid breaking backward compatibility. Closes #1165.