mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-24 18:34:34 +01:00
cli: Improve .schema command output on errors
Improve `.schema` output on errors by marking them as comments. This allows you to pipe any `.schema` output to another shell.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user