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