Skip to content

Commit

Permalink
cli: Improve .schema command output on errors
Browse files Browse the repository at this point in the history
Improve `.schema` output on errors by marking them as comments. This
allows you to pipe any `.schema` output to another shell.
  • Loading branch information
penberg committed Jan 16, 2025
1 parent 465c923 commit 7cbd682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,9 @@ impl Limbo {
if !found {
if let Some(table_name) = table {
let _ = self
.write_fmt(format_args!("Error: Table '{}' not found.", table_name));
.write_fmt(format_args!("-- Error: Table '{}' not found.", table_name));
} else {
let _ = self.writeln("No tables or indexes found in the database.");
let _ = self.writeln("-- No tables or indexes found in the database.");
}
}
}
Expand Down

0 comments on commit 7cbd682

Please sign in to comment.