From 52f7a53e416adb3046530f126f836c3a60fecf8d Mon Sep 17 00:00:00 2001 From: Spxg Date: Sat, 17 May 2025 23:14:15 +0800 Subject: [PATCH] Show structured errors --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cd49e9a..06b0112 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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),