remove process return spam
This commit is contained in:
parent
2c86b4894b
commit
a347e1046a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user