From 1c8ef335440357c3131879fed94c9f1d5b2098e2 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 3 Sep 2022 20:44:45 +0800 Subject: [PATCH] Update src/error.rs Co-authored-by: Sculas --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 34a828fb..f4851d92 100644 --- a/src/error.rs +++ b/src/error.rs @@ -22,7 +22,7 @@ pub enum DbErr { #[error("Type `{0}` cannot be converted from u64")] CannotConvertFromU64(&'static str), /// After an insert statement it was impossible to retrieve the last_insert_id - #[error("Fail to unpack last_insert_id")] + #[error("Failed to unpack last_insert_id")] InsertCouldNotUnpackInsertId, /// When updating, a model should know it's primary key to check /// if the record has been correctly updated, otherwise this error will occur