Add reporting implementation

This commit is contained in:
Matthias Beyer 2016-01-06 19:25:26 +01:00
parent d9de33a932
commit 51870b63f2

View file

@ -68,4 +68,12 @@ fn main() {
}; };
info!("{}", Yellow.paint(format!("Module execution ended with {}", res))); info!("{}", Yellow.paint(format!("Module execution ended with {}", res)));
if rt.report_exit() {
if res {
println!("Ok");
} else {
println!("Error");
}
}
} }