Add a slightly better item decoding error
This commit is contained in:
parent
dbaf477f49
commit
fbfc33857d
@ -688,9 +688,10 @@ impl DBTrans {
|
||||
)
|
||||
.await?
|
||||
{
|
||||
return Ok(Some(Arc::new(serde_json::from_value::<Item>(
|
||||
item.get("details"),
|
||||
)?)));
|
||||
return Ok(Some(Arc::new(
|
||||
serde_json::from_value::<Item>(item.get("details"))
|
||||
.map_err(|e| format!("Decoding item {}/{}: {}", item_type, item_code, e))?,
|
||||
)));
|
||||
}
|
||||
Ok(None)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user