From fb03500994002ccd1b0b132a3810b98fe15572cd Mon Sep 17 00:00:00 2001 From: Bilbo Metropolis Date: Mon, 1 Apr 2024 14:39:09 -0400 Subject: [PATCH] Add more information to the helpful string 'database error' --- crates/standalone/src/control_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/standalone/src/control_db.rs b/crates/standalone/src/control_db.rs index 44837b98f5..58f89b52b8 100644 --- a/crates/standalone/src/control_db.rs +++ b/crates/standalone/src/control_db.rs @@ -25,9 +25,9 @@ pub type Result = core::result::Result; #[derive(thiserror::Error, Debug)] pub enum Error { - #[error("collection not found")] + #[error("collection not found: {0}")] CollectionNotFound(sled::Error), - #[error("database error")] + #[error("database error: {0}")] Database(sled::Error), #[error("record with the name {0} already exists")] RecordAlreadyExists(DomainName),