From ce067efffd8cd7ac1386c51389b9e4f1611309c1 Mon Sep 17 00:00:00 2001 From: prplV Date: Mon, 23 Dec 2024 17:35:23 +0300 Subject: [PATCH] ISSUE#16 --- noxis-rs/src/utils.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/noxis-rs/src/utils.rs b/noxis-rs/src/utils.rs index 86e63f5..9ead34d 100644 --- a/noxis-rs/src/utils.rs +++ b/noxis-rs/src/utils.rs @@ -156,7 +156,7 @@ async fn process_protocol_symbol(proc: Arc, val: u8) -> Result< // }, // 101 - Impermissible trigger values in JSON 101 => { - error!("Impermissible trigger values in JSON in {}'s block. Killing thread...", proc.name); + error!("Impermissible trigger values in JSON in {}'s block. Killing thread...", &proc.name); if is_active(&proc.name).await { terminate_process(&proc.name).await; } @@ -164,9 +164,10 @@ async fn process_protocol_symbol(proc: Arc, val: u8) -> Result< }, // // 121 - Cannot create valid watcher for file dependency + // todo : think about valid situation 121 => { - error!("Cannot create valid watcher for {}'s file dependency. Terminating thread...", proc.name); - let _ = terminate_process("runner-rs").await; + error!("Cannot create valid watcher for file dependency. Terminating {} process...", &proc.name); + let _ = terminate_process(&proc.name).await; return Err(CustomError::Fatal) }, // 111 - global thread termination with killing current child in a face