summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
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 {