From 32f9fc2afed447f2f470a106a03909e870ec0756 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Tue, 22 Aug 2023 11:37:34 +0200 Subject: [PATCH] restart required ex.code 101->201 rust panic returns 101, so this wasn't a good choice --- README.md | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12d2539..367431a 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,4 @@ - ```skip-launcher-update``` skips self-update ### Note for server owners: -When the launcher updates itself it needs to be restarted. It will return exit code 101 in this case. \ No newline at end of file +When the launcher updates itself it needs to be restarted. It will return exit code 201 in this case. \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 7f03f8c..cdcf168 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,7 +109,7 @@ fn self_update(update_only: bool) { if !update_only { std::io::stdin().read_line(&mut String::new()).unwrap(); } - std::process::exit(101); + std::process::exit(201); } }