diff options
| author | Ken Matsui <26405363+ken-matsui@users.noreply.github.com> | 2021-11-01 04:39:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-31 20:39:57 +0100 |
| commit | f902f3ed1d856f01962b7501a3761ac634aed59c (patch) | |
| tree | 7056d8e57e05c2a8b2c458e755ea830df4cb8367 /src | |
| parent | docs(changelog): fix link (diff) | |
| download | sl0ppij-f902f3ed1d856f01962b7501a3761ac634aed59c.tar.gz sl0ppij-f902f3ed1d856f01962b7501a3761ac634aed59c.tar.xz sl0ppij-f902f3ed1d856f01962b7501a3761ac634aed59c.zip | |
fix(typo): Correct typo from `occured` to `occurred` (#821)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 | ||||
| -rw-r--r-- | src/sessions.rs | 10 |
2 files changed, 6 insertions, 6 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); } |
