Skip to content

Commit

Permalink
Add more information to the helpful string 'database error'
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimuth committed Apr 1, 2024
1 parent 4e8393f commit fb03500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/standalone/src/control_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pub type Result<T> = core::result::Result<T, Error>;

#[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),
Expand Down

1 comment on commit fb03500

@github-actions
Copy link

@github-actions github-actions bot commented on fb03500 Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot test failed. Please check the workflow run for details.

Please sign in to comment.