remove process return spam

This commit is contained in:
Scott Richmond 2025-07-07 15:44:08 -04:00
parent 2c86b4894b
commit a347e1046a

View File

@ -503,11 +503,10 @@ impl World {
fn report_process_end(&mut self) { fn report_process_end(&mut self) {
let result = self.active_result().clone().unwrap(); let result = self.active_result().clone().unwrap();
let msg = match result { if let Err(panic) = result {
Ok(value) => format!("Process {} returned with {}", self.active_id().unwrap(), value.show()), let msg = format!("Process :{} panicked: {}", self.active_id().unwrap(), crate::errors::panic(panic));
Err(panic) => format!("Process {} panicked with {}", self.active_id().unwrap(), crate::errors::panic(panic)) self.send_ludus_msg(msg)
}; }
self.send_ludus_msg(msg);
} }
pub async fn run(&mut self) { pub async fn run(&mut self) {