This commit is contained in:
Billy Chan 2022-09-01 15:57:58 +08:00
parent 85533a3bb3
commit 0efdfc6742
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ impl MockDatabaseTrait for MockDatabase {
result: ExecResultHolder::Mock(std::mem::take(&mut self.exec_results[counter])),
})
} else {
Err(DbErr::Query(RuntimeErr::Internal(
Err(DbErr::Exec(RuntimeErr::Internal(
"`exec_results` buffer is empty.".to_owned(),
)))
}

View File

@ -131,7 +131,7 @@ where
match found {
Some(model) => Ok(model),
None => Err(DbErr::RecordNotFound(
"Failed to find inserted item".to_owned(),
"Failed to find updated item".to_owned(),
)),
}
}