aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/error.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-15 15:52:09 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-15 15:52:09 +0200
commite38c599bcfe0c052881b78bc141e9f54c75290ea (patch)
treedad96fda6de95c591bceb69c672d9b2cbde61757 /server/src/routes/ui/error.rs
parentc988e7db759966d9586471e8cfcfd0d91e855dc0 (diff)
downloadjellything-e38c599bcfe0c052881b78bc141e9f54c75290ea.tar
jellything-e38c599bcfe0c052881b78bc141e9f54c75290ea.tar.bz2
jellything-e38c599bcfe0c052881b78bc141e9f54c75290ea.tar.zst
search almost works
Diffstat (limited to 'server/src/routes/ui/error.rs')
-rw-r--r--server/src/routes/ui/error.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/routes/ui/error.rs b/server/src/routes/ui/error.rs
index 41a2de9..02011fc 100644
--- a/server/src/routes/ui/error.rs
+++ b/server/src/routes/ui/error.rs
@@ -139,3 +139,8 @@ impl From<jellybase::database::TransactionError> for MyError {
MyError(anyhow::anyhow!("database oopsie during transaction: {err}"))
}
}
+impl From<jellybase::database::tantivy::TantivyError> for MyError {
+ fn from(err: jellybase::database::tantivy::TantivyError) -> Self {
+ MyError(anyhow::anyhow!("database during search: {err}"))
+ }
+}