From 6cec60389ac734c3be320efa3ad26711f00d5c78 Mon Sep 17 00:00:00 2001 From: Jane Lewis Date: Mon, 15 Apr 2024 19:15:06 -0700 Subject: [PATCH] 'error log' -> 'logs' --- crates/ruff_server/src/server/api.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/ruff_server/src/server/api.rs b/crates/ruff_server/src/server/api.rs index 38166fdf68795..e3ffde76c7512 100644 --- a/crates/ruff_server/src/server/api.rs +++ b/crates/ruff_server/src/server/api.rs @@ -55,7 +55,9 @@ pub(super) fn request<'a>(req: server::Request) -> Task<'a> { } .unwrap_or_else(|err| { tracing::error!("Encountered error when routing request with ID {id}: {err}"); - show_err_msg!("Ruff failed to handle a request from the editor. Check the error log for more details."); + show_err_msg!( + "Ruff failed to handle a request from the editor. Check the logs for more details." + ); let result: Result<()> = Err(err); Task::immediate(id, result) }) @@ -85,7 +87,7 @@ pub(super) fn notification<'a>(notif: server::Notification) -> Task<'a> { } .unwrap_or_else(|err| { tracing::error!("Encountered error when routing notification: {err}"); - show_err_msg!("Ruff failed to handle a notification from the editor. Check the error log for more details."); + show_err_msg!("Ruff failed to handle a notification from the editor. Check the logs for more details."); Task::nothing() }) } @@ -124,7 +126,7 @@ fn local_notification_task<'a, N: traits::SyncNotificationHandler>( Ok(Task::local(move |session, notifier, _, _| { if let Err(err) = N::run(session, notifier, params) { tracing::error!("An error occurred while running {id}: {err}"); - show_err_msg!("Ruff encountered a problem. Check the error log for more details."); + show_err_msg!("Ruff encountered a problem. Check the logs for more details."); } })) } @@ -143,7 +145,7 @@ fn background_notification_thread<'a, N: traits::BackgroundDocumentNotificationH Box::new(move |notifier, _| { if let Err(err) = N::run_with_snapshot(snapshot, notifier, params) { tracing::error!("An error occurred while running {id}: {err}"); - show_err_msg!("Ruff encountered a problem. Check the error log for more details."); + show_err_msg!("Ruff encountered a problem. Check the logs for more details."); } }) })) @@ -188,7 +190,7 @@ fn respond( { if let Err(err) = &result { tracing::error!("An error occurred with result ID {id}: {err}"); - show_err_msg!("Ruff encountered a problem. Check the error log for more details."); + show_err_msg!("Ruff encountered a problem. Check the logs for more details."); } if let Err(err) = responder.respond(id, result) { tracing::error!("Failed to send response: {err}");