Typo
This commit is contained in:
parent
85533a3bb3
commit
0efdfc6742
@ -102,7 +102,7 @@ impl MockDatabaseTrait for MockDatabase {
|
|||||||
result: ExecResultHolder::Mock(std::mem::take(&mut self.exec_results[counter])),
|
result: ExecResultHolder::Mock(std::mem::take(&mut self.exec_results[counter])),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Err(DbErr::Query(RuntimeErr::Internal(
|
Err(DbErr::Exec(RuntimeErr::Internal(
|
||||||
"`exec_results` buffer is empty.".to_owned(),
|
"`exec_results` buffer is empty.".to_owned(),
|
||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ where
|
|||||||
match found {
|
match found {
|
||||||
Some(model) => Ok(model),
|
Some(model) => Ok(model),
|
||||||
None => Err(DbErr::RecordNotFound(
|
None => Err(DbErr::RecordNotFound(
|
||||||
"Failed to find inserted item".to_owned(),
|
"Failed to find updated item".to_owned(),
|
||||||
)),
|
)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user