Update src/error.rs

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

View File

@ -6,7 +6,7 @@ use thiserror::Error;
#[derive(Error, Debug)]
pub enum DbErr {
/// This error can happen when the connection pool is fully-utilized
#[error("Failed to acquire connection from pool.")]
#[error("Failed to acquire connection from pool")]
ConnFromPool,
/// Runtime type conversion error
#[error("Error converting `{from}` into `{into}`: {source}")]