From f902f3ed1d856f01962b7501a3761ac634aed59c Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Mon, 1 Nov 2021 04:39:57 +0900 Subject: [PATCH] fix(typo): Correct typo from `occured` to `occurred` (#821) --- src/main.rs | 2 +- src/sessions.rs | 10 +++++----- zellij-utils/src/ipc.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0cacc375..be11f170 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ pub fn main() { } } Err(e) => { - eprintln!("Error occured: {:?}", e); + eprintln!("Error occurred: {:?}", e); process::exit(1); } } diff --git a/src/sessions.rs b/src/sessions.rs index c2d8afea..6a48a4f3 100644 --- a/src/sessions.rs +++ b/src/sessions.rs @@ -78,7 +78,7 @@ pub(crate) fn get_active_session() -> ActiveSession { } } Err(e) => { - eprintln!("Error occured: {:?}", e); + eprintln!("Error occurred: {:?}", e); process::exit(1); } } @@ -91,7 +91,7 @@ pub(crate) fn kill_session(name: &str) { IpcSenderWithContext::new(stream).send(ClientToServerMsg::KillSession); } Err(e) => { - eprintln!("Error occured: {:?}", e); + eprintln!("Error occurred: {:?}", e); process::exit(1); } }; @@ -108,7 +108,7 @@ pub(crate) fn list_sessions() { 0 } Err(e) => { - eprintln!("Error occured: {:?}", e); + eprintln!("Error occurred: {:?}", e); 1 } }; @@ -137,7 +137,7 @@ pub(crate) fn assert_session(name: &str) { } } Err(e) => { - eprintln!("Error occured: {:?}", e); + eprintln!("Error occurred: {:?}", e); } }; process::exit(1); @@ -151,7 +151,7 @@ pub(crate) fn assert_session_ne(name: &str) { } println!("Session with name {:?} aleady exists. Use attach command to connect to it or specify a different name.", name); } - Err(e) => eprintln!("Error occured: {:?}", e), + Err(e) => eprintln!("Error occurred: {:?}", e), }; process::exit(1); } diff --git a/zellij-utils/src/ipc.rs b/zellij-utils/src/ipc.rs index 995b89fb..b27a097a 100644 --- a/zellij-utils/src/ipc.rs +++ b/zellij-utils/src/ipc.rs @@ -104,7 +104,7 @@ impl Display for ExitReason { f, "Session attached to another client. Use --force flag to force connect." ), - Self::Error(e) => write!(f, "Error occured in server:\n{}", e), + Self::Error(e) => write!(f, "Error occurred in server:\n{}", e), } } }