update errors
This commit is contained in:
parent
f0c24e7313
commit
b431079d34
1 changed files with 3 additions and 5 deletions
|
@ -2,12 +2,10 @@ use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
#[error("io error: {0}")]
|
#[error("I/O error: {0}")]
|
||||||
IOError(#[from] std::io::Error),
|
IOError(#[from] std::io::Error),
|
||||||
|
|
||||||
#[error("error while deserializing TOML: {0}")]
|
#[error("error while deserializing TOML: {0}")]
|
||||||
DeserError(#[from] toml::de::Error),
|
DeserError(#[from] toml::de::Error),
|
||||||
|
#[error("Error connecting to database: {0}")]
|
||||||
#[error("Database error: {0}")]
|
DbConnectionError(String),
|
||||||
DatabaseError(String),
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue