Update src/error.rs

Co-authored-by: Sculas <contact@sculas.xyz>
This commit is contained in:
Chris Tsang 2022-09-03 20:44:45 +08:00 committed by GitHub
parent 5f3210c62a
commit 1c8ef33544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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