Show structured errors

This commit is contained in:
Spxg
2025-05-17 23:14:15 +08:00
parent 50afc1ba45
commit 52f7a53e41

View File

@@ -159,11 +159,11 @@ pub struct SQLiteStatementValues {
pub enum SQLitendError {
#[error("An error occurred while converting a string to a CString")]
ToCStr,
#[error("An error occurred while opening the DB: {0:?}")]
#[error("An error occurred while opening the DB: {0:#?}")]
OpenDb(InnerError),
#[error("An error occurred while preparing stmt: {0:?}")]
#[error("An error occurred while preparing stmt: {0:#?}")]
Prepare(InnerError),
#[error("An error occurred while stepping to the next line: {0:?}")]
#[error("An error occurred while stepping to the next line: {0:#?}")]
Step(InnerError),
#[error("An error occurred while getting column name: {0}")]
GetColumnName(String),