Skip to content

Commit

Permalink
nicer error messages for cli, switch to display rather than debug (#5329
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kmitchener authored Feb 18, 2023
1 parent 27b15fd commit 6ec2544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion-cli/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub async fn exec_from_lines(
if line.ends_with(';') {
match exec_and_print(ctx, print_options, query).await {
Ok(_) => {}
Err(err) => println!("{:?}", err),
Err(err) => println!("{err}"),
}
query = "".to_owned();
} else {
Expand All @@ -67,7 +67,7 @@ pub async fn exec_from_lines(
if !query.is_empty() {
match exec_and_print(ctx, print_options, query).await {
Ok(_) => {}
Err(err) => println!("{:?}", err),
Err(err) => println!("{err}"),
}
}
}
Expand Down Expand Up @@ -138,7 +138,7 @@ pub async fn exec_from_repl(
rl.add_history_entry(line.trim_end());
match exec_and_print(ctx, &print_options, line).await {
Ok(_) => {}
Err(err) => eprintln!("{:?}", err),
Err(err) => eprintln!("{err}"),
}
}
Err(ReadlineError::Interrupted) => {
Expand Down

0 comments on commit 6ec2544

Please sign in to comment.