Update src/error.rs

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

View File

@ -26,7 +26,7 @@ pub enum DbErr {
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
#[error("Fail to get primary key from model")]
#[error("Failed to get primary key from model")]
UpdateCouldNotGetPrimaryKey,
/// There was a problem with the database connection
#[error("Connection Error: {0}")]