Skip to content

Commit

Permalink
Don't print server backtraces when database doesn't exist (#1243)
Browse files Browse the repository at this point in the history
We were just always printing a stack trace for top level errors. No
reason to do that; we should only print stack traces on ISEs
typically.

Fixes #1218.
  • Loading branch information
msullivan authored Mar 8, 2024
1 parent 3126adc commit c624695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn main() {
err = arc.inner();
}
if let Some(e) = err.downcast_ref::<edgedb_errors::Error>() {
print::edgedb_error(e, true);
print::edgedb_error(e, false);
} else {
print::error(err);
}
Expand Down

0 comments on commit c624695

Please sign in to comment.