diff --git a/cli/src/config/init.rs b/cli/src/config/init.rs index f8b290e..c433605 100644 --- a/cli/src/config/init.rs +++ b/cli/src/config/init.rs @@ -1,7 +1,7 @@ use std::convert::Infallible; use clap::ArgMatches; -use miette::Result; +use miette::{Report, Result}; use tracing::error; use watchexec::{config::InitConfig, error::RuntimeError, handler::SyncFnHandler}; @@ -22,10 +22,10 @@ pub fn init(_args: &ArgMatches<'static>) -> Result { if cfg!(debug_assertions) { eprintln!("[[{:?}]]", data); - } else { - eprintln!("[[{}]]", data); } + eprintln!("[[Error (not fatal)]]\n{}", Report::new(data)); + Ok(()) }, ));