diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-19 01:25:31 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-20 23:55:22 -0400 |
| commit | e5f72711c5a17c5db24e209b14f82d426eceb86e (patch) | |
| tree | 04865172284c86549dd08d700c21a29c36f54005 /src/error.rs | |
| parent | 0079624488af334817f58e30dbc676d3adde8de6 (diff) | |
Write tests.
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 2a6555f..e2128d3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -15,6 +15,7 @@ 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. +#[derive(Debug)] pub struct InternalError(Id, BoxedError); impl<E> From<E> for InternalError @@ -40,6 +41,7 @@ impl IntoResponse for InternalError { } /// Transient identifier for an InternalError. Prefixed with `E`. +#[derive(Debug)] pub struct Id(BaseId); impl From<BaseId> for Id { |
