Run Sieve scripts in async context

This commit is contained in:
mdecimus
2024-05-24 10:32:41 +02:00
parent ffdb7d766a
commit 4e7087d335
19 changed files with 363 additions and 458 deletions

View File

@@ -661,7 +661,9 @@ impl Deserialize for ReportEvent {
.and_then(|domain| std::str::from_utf8(domain).ok())
.map(|s| s.to_string())
.ok_or_else(|| {
crate::Error::InternalError("Failed to deserialize report domain".into())
crate::Error::InternalError(format!(
"Failed to deserialize report domain: {key:?}"
))
})?,
})
}