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