diff --git a/src/world.rs b/src/world.rs index 63a9e01..ddc6577 100644 --- a/src/world.rs +++ b/src/world.rs @@ -503,11 +503,10 @@ impl World { fn report_process_end(&mut self) { let result = self.active_result().clone().unwrap(); - let msg = match result { - Ok(value) => format!("Process {} returned with {}", self.active_id().unwrap(), value.show()), - Err(panic) => format!("Process {} panicked with {}", self.active_id().unwrap(), crate::errors::panic(panic)) - }; - self.send_ludus_msg(msg); + if let Err(panic) = result { + let msg = format!("Process :{} panicked: {}", self.active_id().unwrap(), crate::errors::panic(panic)); + self.send_ludus_msg(msg) + } } pub async fn run(&mut self) {