Add some extra info to the 'modified without updating' message

For #2315
This commit is contained in:
Damien Elmes 2023-01-18 22:37:43 +10:00
parent b8a8342a9a
commit 03814fa1c4

View File

@ -97,7 +97,10 @@ impl Collection {
.or_not_found(entry.card_id())?; .or_not_found(entry.card_id())?;
require!( require!(
card.mtime == entry.mtime(), card.mtime == entry.mtime(),
"bug: card modified without updating queue", "bug: card modified without updating queue: id:{} card:{} entry:{}",
card.id,
card.mtime,
entry.mtime()
); );
// fixme: pass in card instead of id // fixme: pass in card instead of id