diff --git a/apps/onelauncher/desktop/src/ext/specta.rs b/apps/onelauncher/desktop/src/ext/specta.rs index 951373d5..624414b6 100644 --- a/apps/onelauncher/desktop/src/ext/specta.rs +++ b/apps/onelauncher/desktop/src/ext/specta.rs @@ -3,15 +3,21 @@ use std::path::Path; use std::process::Command; pub fn formatter(file: &Path) -> io::Result<()> { - Command::new("pnpm") + let result = Command::new("pnpm") .arg("eslint") .arg("--flag") .arg("unstable_ts_config") .arg("--fix") .arg(file) - .output() - .map(|_| ()) - .map_err(io::Error::other) + .output(); + + match result { + Ok(_) => Ok(()), + Err(e) => { + eprintln!("error running formatter on {}: {}", file.display(), e); + Ok(()) + } + } } const _: specta_typescript::FormatterFn = formatter;