We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e4fcd commit fdaa7cbCopy full SHA for fdaa7cb
1 file changed
src/main.rs
@@ -51,12 +51,17 @@ async fn server_run() -> Result<(), Box<dyn Error>> {
51
break
52
}
53
54
- let tuples = db.run(&input).await?;
55
-
56
- if tuples.is_empty() {
57
- println!("\nEmpty!");
58
- } else {
59
- println!("\n{}", create_table(&tuples));
+ match db.run(&input).await {
+ Ok(tuples) => {
+ if tuples.is_empty() {
+ println!("\nEmpty!");
+ } else {
+ println!("\n{}", create_table(&tuples));
60
+ }
61
62
+ Err(err) => {
63
+ println!("{}", err);
64
65
66
67
0 commit comments