mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
delegate memory error details
This commit is contained in:
parent
d866f0f3f5
commit
a48f62eb13
2 changed files with 3 additions and 3 deletions
|
|
@ -96,8 +96,8 @@ impl Gemini {
|
|||
match self.database.records() {
|
||||
Ok(records) => {
|
||||
for record in records {
|
||||
if self.memory.add(record.id, record.pem).is_err() {
|
||||
return Err(Error::MemoryIndex(record.id));
|
||||
if let Err(reason) = self.memory.add(record.id, record.pem) {
|
||||
return Err(Error::MemoryIndex(reason));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue