Set a statusline error for formatter errors in `:format`

pull/12744/head
Michael Davis 2025-01-31 14:07:22 -05:00
parent 2367b20318
commit 47f84d04ea
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
}