diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-18 02:22:09 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-18 12:18:45 -0400 |
| commit | 2b4cf5c62ff82fa408a4f82bde0b561ff3b15497 (patch) | |
| tree | 66d1d695a54eef27c4509fb2f5e7e8372a96ba1e /src/error.rs | |
| parent | cce6662d635bb2115f9f2a7bab92cc105166e761 (diff) | |
Make BoxedError an implementation detail of InternalError.
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index b700eaa..21caeda 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,10 +9,7 @@ use axum::{ // complex (though very usable). We don't need to be overly careful about // allocations on errors in this app, so this is fine for most "general // failure" cases. -// -// If that changes, my hope is to use `thiserror` or something with a similar -// strategy, before resorting to `anyhow`. -pub type BoxedError = Box<dyn error::Error + Send + Sync>; +type BoxedError = Box<dyn error::Error + Send + Sync>; // Returns a 500 Internal Server Error to the client. Meant to be used via the // `?` operator; _does not_ return the originating error to the client. |
