mirror of https://github.com/helix-editor/helix
Set a statusline error for formatter errors in `:format`
parent
2367b20318
commit
47f84d04ea
|
@ -3514,6 +3514,10 @@ async fn make_format_callback(
|
|||
}
|
||||
}
|
||||
Err(err) => {
|
||||
if write.is_none() {
|
||||
editor.set_error(err.to_string());
|
||||
return;
|
||||
}
|
||||
log::info!("failed to format '{}': {err}", doc.display_name());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue