Use simplified error strings for errors at crate level

This commit is contained in:
Tobie Morgan Hitchcock 2023-01-08 14:51:36 +00:00
parent 1cef0946dc
commit 1162e4a8ce

View file

@ -160,9 +160,9 @@ pub mod error {
#[derive(thiserror::Error, Debug)]
pub enum Error {
/// An error with an embedded storage engine
#[error("Database error: {0}")]
#[error("{0}")]
Db(#[from] crate::error::Db),
/// An error with a remote database instance
#[error("API error: {0}")]
#[error("{0}")]
Api(#[from] crate::error::Api),
}