mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
internal: Avoid newlines in fetch workspace errors
Most logs lines don't have newlines, ensure fetch workspace errors follow this pattern. Before: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace After: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace
This commit is contained in:
parent
8db40df2a3
commit
efdfb7998f
1 changed files with 2 additions and 2 deletions
|
@ -689,7 +689,7 @@ impl GlobalState {
|
|||
self.fetch_workspaces_queue
|
||||
.op_completed(Some((workspaces, force_reload_crate_graph)));
|
||||
if let Err(e) = self.fetch_workspace_error() {
|
||||
error!("FetchWorkspaceError:\n{e}");
|
||||
error!("FetchWorkspaceError: {e}");
|
||||
}
|
||||
self.wants_to_switch = Some("fetched workspace".to_owned());
|
||||
(Progress::End, None)
|
||||
|
@ -729,7 +729,7 @@ impl GlobalState {
|
|||
BuildDataProgress::End(build_data_result) => {
|
||||
self.fetch_build_data_queue.op_completed(build_data_result);
|
||||
if let Err(e) = self.fetch_build_data_error() {
|
||||
error!("FetchBuildDataError:\n{e}");
|
||||
error!("FetchBuildDataError: {e}");
|
||||
}
|
||||
|
||||
if self.wants_to_switch.is_none() {
|
||||
|
|
Loading…
Reference in a new issue