From c24acc6e46ed0badf743e97e67dd1c4b5f552cc6 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 11 Oct 2021 19:17:58 +0200 Subject: [PATCH] fix(core): change worker exit code that was conflicting with Rust's panics. Fix #783 --- espanso/src/exit_code.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/espanso/src/exit_code.rs b/espanso/src/exit_code.rs index 81eda51..f99d1b0 100644 --- a/espanso/src/exit_code.rs +++ b/espanso/src/exit_code.rs @@ -21,8 +21,8 @@ pub const WORKER_SUCCESS: i32 = 0; pub const WORKER_ALREADY_RUNNING: i32 = 1; pub const WORKER_GENERAL_ERROR: i32 = 2; pub const WORKER_LEGACY_ALREADY_RUNNING: i32 = 3; -pub const WORKER_EXIT_ALL_PROCESSES: i32 = 101; -pub const WORKER_RESTART: i32 = 102; +pub const WORKER_EXIT_ALL_PROCESSES: i32 = 50; +pub const WORKER_RESTART: i32 = 51; pub const DAEMON_SUCCESS: i32 = 0; pub const DAEMON_ALREADY_RUNNING: i32 = 1; @@ -36,7 +36,7 @@ pub const MIGRATE_LEGACY_INSTANCE_RUNNING: i32 = 2; pub const MIGRATE_USER_ABORTED: i32 = 3; pub const MIGRATE_CLEAN_FAILURE: i32 = 50; pub const MIGRATE_DIRTY_FAILURE: i32 = 51; -pub const MIGRATE_UNEXPECTED_FAILURE: i32 = 101; +pub const MIGRATE_UNEXPECTED_FAILURE: i32 = 52; pub const ADD_TO_PATH_SUCCESS: i32 = 0; pub const ADD_TO_PATH_FAILURE: i32 = 1;