Skip to content

Commit 1a4ebe3

Browse files
committed
enable color_eyre in cli mode
1 parent 27c7d78 commit 1a4ebe3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

coman/src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pub fn init() -> Result<()> {
1717
"This is a bug. Consider reporting it at {}",
1818
env!("CARGO_PKG_REPOSITORY")
1919
))
20-
.capture_span_trace_by_default(false)
21-
.display_location_section(false)
20+
.capture_span_trace_by_default(true)
21+
.display_location_section(true)
2222
.display_env_section(false)
2323
.into_hooks();
2424
eyre_hook.install()?;

coman/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ extern crate tuirealm;
6161
#[tokio::main]
6262
async fn main() -> Result<()> {
6363
set_global_service_name(env!("CARGO_PKG_NAME"));
64+
crate::errors::init()?;
6465
crate::logging::init()?;
6566
CompleteEnv::with_factory(Cli::command).complete();
6667

@@ -184,7 +185,6 @@ async fn main() -> Result<()> {
184185
}
185186

186187
fn run_tui(tick_rate: f64) -> Result<()> {
187-
crate::errors::init()?;
188188
//we initialize the terminal early so the panic handler that restores the terminal is correctly set up
189189
let adapter = CrosstermTerminalAdapter::new()?;
190190
let bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal");

0 commit comments

Comments
 (0)