feat: Display the query text when panicking.
Helpful for determining the cause of a failure.pull/24376/head
parent
04617a4362
commit
3fb867f1dc
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue