feat: Display the query text when panicking.

Helpful for determining the cause of a failure.
pull/24376/head
Stuart Carnie 2023-05-19 09:24:14 +10:00
parent 04617a4362
commit 3fb867f1dc
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ async fn run_query(cluster: &MiniCluster, query: &Query) -> Result<Vec<String>>
{
return Ok(status.message().lines().map(str::to_string).collect())
}
Err(e) => panic!("error running query: {e}"),
Err(e) => panic!("error running query '{query_text}': {e}"),
};
Ok(query.normalize_results(batches, language))