提示虚拟网卡创建失败的信息

This commit is contained in:
lbl8603
2024-08-07 21:29:55 +08:00
parent afff49e61a
commit dc4e472f20
14 changed files with 198 additions and 19 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
use common::callback;
use console::style;
use vnt::core::{Config, Vnt};
mod root_check;
fn main() {
@@ -16,7 +17,7 @@ fn main() {
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e);
println!("{}", style(format!("Error {:?}", e)).red());
return;
}
};