improve error log

This commit is contained in:
Maximilian Schneider 2023-04-16 22:09:35 +02:00
parent b49d18d826
commit 9a9e3319a5
1 changed files with 3 additions and 1 deletions

View File

@ -324,7 +324,9 @@ impl PostgresSession {
"#,
);
self.client.execute(&query, &args).await?;
if let Err(err) = self.client.execute(&query, &args).await {
return Err(anyhow::format_err!("could not execute query={query} err={err:?}"));
}
Ok(())
}