improve error log
This commit is contained in:
parent
b49d18d826
commit
9a9e3319a5
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue