This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ec254442 nicer error messages for cli, switch to display rather than 
debug (#5329)
6ec254442 is described below

commit 6ec254442456e33d517c021ce56a0423398ffea7
Author: Kirk Mitchener <[email protected]>
AuthorDate: Sat Feb 18 11:18:48 2023 -0500

    nicer error messages for cli, switch to display rather than debug (#5329)
---
 datafusion-cli/src/exec.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/datafusion-cli/src/exec.rs b/datafusion-cli/src/exec.rs
index 539e75040..7955e1e2c 100644
--- a/datafusion-cli/src/exec.rs
+++ b/datafusion-cli/src/exec.rs
@@ -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 {
@@ -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}"),
         }
     }
 }
@@ -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) => {

Reply via email to