Remove stale Error variant

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-12-02 19:20:51 +01:00
parent 969c314315
commit 1c30767592
2 changed files with 3 additions and 15 deletions

View file

@ -2203,7 +2203,7 @@ impl Database {
match f(tx).await {
Ok(result) => return Ok(result),
Err(error) => match error {
Error::Database2(
Error::Database(
DbErr::Exec(sea_orm::RuntimeErr::SqlxError(error))
| DbErr::Query(sea_orm::RuntimeErr::SqlxError(error)),
) if error